Skip to content

Commit 12593ab

Browse files
authored
Merge pull request #6031 from dotty-staging/fix-#6003
Test for #6003
2 parents 5f5b5b0 + 95a94c4 commit 12593ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pos/i6003.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
object Test {
2+
opaque type T = String
3+
object T {
4+
def unwrap(t: T): String = t
5+
}
6+
7+
opaque type U = String
8+
type W = U
9+
object U {
10+
def unwrap(w: W): String = w: U
11+
}
12+
}

0 commit comments

Comments
 (0)