We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099b91b commit bfa3d69Copy full SHA for bfa3d69
tests/pos/i2944.scala
@@ -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[c] => that.get(4.asInstanceOf[K])
7
+ case _ => get(5.asInstanceOf[K])
8
+ }
9
10
+}
0 commit comments