Closed
Description
tested in Dotty REPL 0.12-RC1, I believe only these cases are an issue:
val foo = <expr> <booleanLiteral
| characterLiteral
| stringLiteral
| symbolLiteral
| "null">
e.g.
val foo = 123 'bar;
in Dotty REPL results in val foo: Int = 123
, this is particularly bad as the Symbol literal is ignored, where otherwise an error is generated for their presence.
However, in Scala REPL 2.12.8 results in:
<console>:1: error: ';' expected but symbol literal found.
val foo = 123 'bar;
^