CompileFast doesn't work with HasFlag
ABatenev opened this issue · 7 comments
ABatenev commented
I have a flag enum, like
[Flags]
enum Foo
{
None = 0,
Black = 1,
Red = 2,
Green = 4,
Blue = 8
}
class Bar
{
Foo Foo
}
and i have expression
Expression<Func<Bar, bool>>= new(x => x.Foo.HasFlag(Foo.Green ))
After which I get the following error: System.ExecutionEngineException: "Exception_WasThrown"
dadhi commented
Ok, cool. Will check.
zamaleev commented
@dadhi sorry for bothering you, do you have any updates on this, can we some how help for investigation?
dadhi commented
I will look today, but no guarantee. Planned to do so anyway.
zamaleev commented
Thanks a mill!