We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class A(val i: Int) def a(i: Int): A = new A(i) { println(i) }
Reference to i is ambiguous, it is both defined in method a and inherited subsequently in anonymous class A {...}
The code compiles in both dotty 0.23 and scala 2.3.1