Skip to content

Commit 08b5b3f

Browse files
Add regression test
1 parent 3d5cf9c commit 08b5b3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/neg/i19949.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
trait T[N]:
3+
type M = N match
4+
case 0 => Any
5+
6+
val t: T[Double] = new T[Double] {}
7+
val x: t.M = "hello" // error
8+
9+
val z: T[Double]#M = "hello" // error

0 commit comments

Comments
 (0)