Skip to content

Commit 526670d

Browse files
committed
Unrelated test for a previously closed issue
1 parent ddad2eb commit 526670d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i8338.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object test {
2+
trait B {
3+
type X; def mkX(i: Int): B#X
4+
}
5+
val b: B = new B {
6+
type X = Int; def mkX(i: Int): X = i // error
7+
}
8+
}

0 commit comments

Comments
 (0)