You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #259, square and angle brackets are not currently used to decide when the body of a lambda stops.
varintList=newList<int>{1,2};target.SetVariable("intList",intList);varresults=target.Eval<IEnumerable<Dictionary<string,int>>>("intList.Select(a => new Dictionary<string, int>())");
DynamicExpresso.Exceptions.ParseException : '.' or '(' expected (at index 46).
DynamicExpresso.Exceptions.ParseException : ')' or ',' expected (at index 40).
This should be an easy fix for the multi-dimensional arrays (basically another extension of #260 ), but I'm struggling to figure out how it would be done for generics, as the left angle bracket could easily be used as less than instead meaning there wouldn't be a closing one.
.Where(a =>a<variable).Select(a =>newA<TypeName>())// I wouldn't expect anyone to do this, but I hope it helps illustrate my point.
I discovered this on purpose, while trying to explicitly find bugs with the lambda parsing. As such it is not urgent, and you can also work around it by putting the whole expression after the Lambda Arrow in parentheses.
The text was updated successfully, but these errors were encountered:
Similar to #259, square and angle brackets are not currently used to decide when the body of a lambda stops.
This should be an easy fix for the multi-dimensional arrays (basically another extension of #260 ), but I'm struggling to figure out how it would be done for generics, as the left angle bracket could easily be used as less than instead meaning there wouldn't be a closing one.
I discovered this on purpose, while trying to explicitly find bugs with the lambda parsing. As such it is not urgent, and you can also work around it by putting the whole expression after the Lambda Arrow in parentheses.
The text was updated successfully, but these errors were encountered: