Skip to content

Commit f98b23b

Browse files
committed
Address review
1 parent a682252 commit f98b23b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Types.*
99
import StdNames.*
1010
import NameKinds.OuterSelectName
1111
import NameKinds.SuperAccessorName
12-
import NameOps.unexpandedName
1312

1413
import ast.tpd.*
1514
import config.Printers.init as printer

tests/init/neg/super-resolution2.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait B:
77
def foo(): Int = m
88

99
class N extends A with B:
10-
override def foo(): Int = 10 * super.foo()
10+
override def foo(): Int = a * super.foo()
1111

1212
class Inner:
1313
N.super[A].foo()
@@ -17,3 +17,4 @@ class N extends A with B:
1717

1818
val m = 30 // error
1919
val n = 40 // error
20+
val a = 50

0 commit comments

Comments
 (0)