Is this is an ExpressionTrees bug? #2
问题 Looks like ExpressionTrees compiler should be near with the C# spec in many behaviors, but unlike C# there is no support for conversion from decimal to any enum-type : using System; using System.Linq.Expressions; class Program { static void Main() { Func<decimal, ConsoleColor> converter1 = x => (ConsoleColor) x; ConsoleColor c1 = converter1(7m); // fine Expression<Func<decimal, ConsoleColor>> expr = x => (ConsoleColor) x; // System.InvalidOperationException was unhandled // No coercion