summary refs log tree commit diff
path: root/src/test/ui/parser/expr-as-stmt.fixed
AgeCommit message (Collapse)AuthorLines
2019-04-30Reword ambigous parse error to fit with the current errorEsteban Küber-2/+2
2019-04-29Add test case for #47287Esteban Küber-0/+6
2019-04-29Identify when a stmt could have been parsed as an exprEsteban Küber-0/+34
There are some expressions that can be parsed as a statement without a trailing semicolon depending on the context, which can lead to confusing errors due to the same looking code being accepted in some places and not others. Identify these cases and suggest enclosing in parenthesis making the parse non-ambiguous without changing the accepted grammar.