Closed
Description
You can currently define a variable whose name is inline
, but you can't reference it
class Test {
def foo(x: Int): Int = {
val inline = 3
inline
}
}
-- [E103] Syntax Error: tests/allan/Test.scala:4:4 -----------------------------
4 | inline
| ^^^^^^
| Illegal start of statement: no modifiers allowed here
longer explanation available when compiling with `-explain`