Skip to content

Commit cc2a979

Browse files
committed
Add original test case of #360
1 parent 9ebec04 commit cc2a979

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/t1569.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ object Bug {
44
def foo(x: Int)(y: C)(z: y.T): Unit = {}
55
foo(3)(new C { type T = String })("hello")
66
}
7+
object Bug2 {
8+
class C { type T }
9+
class D extends C { type T = String }
10+
def foo(x: Int)(y: C)(z: y.T): Unit = {}
11+
foo(3)(new D {})("hello")
12+
}

0 commit comments

Comments
 (0)