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.
1 parent a682252 commit f98b23bCopy full SHA for f98b23b
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -9,7 +9,6 @@ import Types.*
9
import StdNames.*
10
import NameKinds.OuterSelectName
11
import NameKinds.SuperAccessorName
12
-import NameOps.unexpandedName
13
14
import ast.tpd.*
15
import config.Printers.init as printer
tests/init/neg/super-resolution2.scala
@@ -7,7 +7,7 @@ trait B:
7
def foo(): Int = m
8
class N extends A with B:
- override def foo(): Int = 10 * super.foo()
+ override def foo(): Int = a * super.foo()
class Inner:
N.super[A].foo()
@@ -17,3 +17,4 @@ class N extends A with B:
17
18
val m = 30 // error
19
val n = 40 // error
20
+ val a = 50
0 commit comments