Skip to content
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

Expression interpreter - IsTrue, IsFalse, UnaryPlus missing cases #15182

Closed
bartdesmet opened this issue Sep 12, 2015 · 1 comment
Closed

Expression interpreter - IsTrue, IsFalse, UnaryPlus missing cases #15182

bartdesmet opened this issue Sep 12, 2015 · 1 comment
Assignees
Milestone

Comments

@bartdesmet
Copy link
Contributor

Evaluating the following expressions results in NotSupportedException, where it doesn't for the compiler. It seems there's the wrong assumption those node types are always used in conjunction with a method, but that's not the case for primitive types:

Test(Expression.IsTrue(Expression.Constant(true)));
Test(Expression.IsFalse(Expression.Constant(true)));
Test(Expression.UnaryPlus(Expression.Constant(42)));

where Test is a simple wrapper around Expression.Lambda<Func>(e).Compile()()

@VSadov
Copy link
Member

VSadov commented Sep 21, 2015

closed in dotnet/corefx#3227

@VSadov VSadov closed this as completed Sep 21, 2015
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rtm milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants