Skip to content

Commit c25396c

Browse files
authored
Merge pull request #8475 from dotty-staging/fix-#5699
Fix #5699: Add regression test
2 parents d487745 + 402a8ae commit c25396c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/pos/i5699.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def test = {
2+
type M = { type T[+A] } & { type T[-A] }
3+
val M: M = ().asInstanceOf[M]
4+
M: M
5+
}

0 commit comments

Comments
 (0)