Skip to content

Commit 6e3f325

Browse files
committed
Add test case
1 parent b10eece commit 6e3f325

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/pos/avoid.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,20 @@ object test {
88
}
99
val z: String = x.y
1010
}
11+
12+
// A tricky case involving inner classes, exercised
13+
// in the large in dotty.tools.dotc.core.NameKinds.scala.
14+
object Test2 {
15+
16+
class NK {
17+
class I
18+
type T
19+
}
20+
21+
val x = new NK { type T = I }
22+
23+
val y = {
24+
class C extends NK { type T = I }
25+
new C
26+
}
27+
}

0 commit comments

Comments
 (0)