Skip to content

(T)x precedence is wrong #341

@FrankMallamo

Description

@FrankMallamo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions