Open gafter opened 8 years ago
Per spec, <
has higher precedence than as
. so isn't the current behavior By Design?
@Youssef1313 The right-hand operand of as
is not an expression, so the precedence rules don't really apply. Use the grammar for more precision.
The following should parse without a problem
and mean the same thing as this
but Roslyn gives a syntax error.
Here is a more complete context in which there should be no syntactic or semantic errors