Skip to content

Commit f84113d

Browse files
authored
Merge pull request #4913 from dotty-staging/fix-#3500
Fix #3500: Add regression test
2 parents 1ded4f9 + 7ead0b0 commit f84113d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/i3500.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
trait Map2[K] {
2+
def get(k: K): K = k
3+
def foo: K = {
4+
this match {
5+
case that: Map2[b] => that.get(3.asInstanceOf[b])
6+
case that: Map2[b] => that.get(3.asInstanceOf[K])
7+
case _ => get(5.asInstanceOf[K])
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)