-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolated string in expression tree lambda doesn't compile #55114
Comments
Tagging subscribers to this area: @cston Issue DetailsThe following works in .NET 5:
But in 6.0.100-preview.7.21373.8 it errors out:
|
cc: @333fred |
Introduces a binder flag to track whether we are currently in an expression tree or not. Fixes dotnet#55114.
Introduces a binder flag to track whether we are currently in an expression tree or not. Fixes dotnet#55114.
* Don't use DefaultInterpolatedStringHandler in expression trees Introduces a binder flag to track whether we are currently in an expression tree or not. Fixes #55114.
The following works in .NET 5:
Func<IQueryable<string>, IQueryable<string>> f = s => s.Select(o => $"{o.Length}")
But in 6.0.100-preview.7.21373.8 it errors out:
The text was updated successfully, but these errors were encountered: