Skip to content

Commit 402a8ae

Browse files
committed
Fix #5699: Add regression test
1 parent 31fc9ab commit 402a8ae

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)