-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Lazy in constructor parameter causes Nil$.head #4058
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
Comments
TL;DR, Scalac complains that Taking inspiration from Compiler.scala, maybe this could be checked by a new miniphase before RefChecks (say, like CheckStatic?) Looking at the trace from the final call, the first interesting (non-obviously-correct) line is
A breakpoint there shows that |
Let's see if I make any progress here. |
I don't think we should introduce a new mini-phase. The parser should reject it (like in scalac). Probably here: https://github.com/lampepfl/dotty/blob/765550305f945a0d53a93ff1fabc9de56a3f0386/compiler/src/dotty/tools/dotc/parsing/Parsers.scala#L1842 Simpler test case: |
Can try that, might be even easier! |
I noticed `sealed` while reviewing `modifiers`.
I noticed `sealed` while reviewing `modifiers`.
I noticed `sealed` while reviewing `modifiers`.
Fix #4058: Fix two problems with flag combinations
The text was updated successfully, but these errors were encountered: