-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error message for lazy var
and inline var
is wrong: says erased
instead of lazy
or inline
#11872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Same for scala> inline var x = 42
1 |inline var x = 42
| ^
| Modifier `erased` is not allowed for this definition
|
erased
instead of lazy
inline var
is wrong: says erased
instead of lazy
or inline
inline var
is wrong: says erased
instead of lazy
or inline
lazy var
and inline var
is wrong: says erased
instead of lazy
or inline
Seems to be hardcoded to |
bjornregnell
added a commit
to bjornregnell/dotty
that referenced
this issue
Mar 24, 2021
PR now here #11878 |
odersky
added a commit
that referenced
this issue
Mar 25, 2021
Fix #11872, correct error msg when modifier flag is not allowed
michelou
pushed a commit
to michelou/scala3
that referenced
this issue
Mar 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.0.0-RC2-bin-20210323-d4f1c26-NIGHTLY
Minimized code and Output
Expectation
Error message falsely says that the
lazy
modifier iserased
, instead it should be:The text was updated successfully, but these errors were encountered: