Closed
Description
Compiler version
3.0.0-RC2-bin-20210323-d4f1c26-NIGHTLY
Minimized code and Output
scala> lazy var x = 42
1 |lazy var x = 42
| ^
| Modifier `erased` is not allowed for this definition
Expectation
Error message falsely says that the lazy
modifier is erased
, instead it should be:
scala> lazy var x = 42
1 |lazy var x = 42
| ^
| Modifier `lazy` is not allowed for this definition