The cast operator “(T)x” precedence is not correct.
Interpreter interpreter = new();
lambda = interpreter.Parse("(int)x == 1", new Parameter("x", typeof(int)));
lambda.Invoke(1)};
The result of Invoke is 1 and lambda,Expression value is {Convert((x == 1), Int32)}. According to operators precedence they should be true and {Convert((x == 1), Int32)} respectively.
The cast operator “(T)x” precedence is not correct.
The result of Invoke is 1 and lambda,Expression value is {Convert((x == 1), Int32)}. According to operators precedence they should be true and {Convert((x == 1), Int32)} respectively.