Skip to content

Commit ffbccf8

Browse files
Merge pull request #9557 from dotty-staging/fix-#6226
Fix #6226: Add regression test
2 parents 188ff60 + 693f26b commit ffbccf8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/neg/i6226.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
object O1 {
2+
opaque type X = Array[X] // error
3+
}
4+
5+
object O2 {
6+
opaque type X = X // error
7+
}
8+
9+
object O3 { // error
10+
opaque type R[X] = T[X]
11+
opaque type T[X] = R[X] // error
12+
}

0 commit comments

Comments
 (0)