Skip to content

Commit 4ba42dd

Browse files
committed
Test for #16415
1 parent caaf917 commit 4ba42dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
abstract class A[X]:
2+
def foo(x: X): X
3+
4+
class IO
5+
class C
6+
def test(io: IO^) =
7+
class B extends A[C^{io}]: // error, but should work
8+
override def foo(x: C^{io}): C^{io} = ???

0 commit comments

Comments
 (0)