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 240f9e9 commit 4f51472Copy full SHA for 4f51472
tests/run/t13418.check
@@ -1,2 +1,3 @@
1
-no match
2
+ok
3
tests/run/t13418.scala
@@ -7,14 +7,20 @@ class X { class Y[Q] }
7
val x1 = new X
8
val x2 = new X
9
val y: Any = new x1.Y[Int]
10
+type Foo = [Q] =>> x2.Y[Q]
11
+type Bar = [Q] =>> x1.Y[Q]
12
13
@main def Test() = {
14
b match {
- case _: a2.B => println("match")
- case _ => println("no match")
15
+ case _: a2.B => println("wrong")
16
+ case _: a1.B => println("ok")
17
}
18
y match {
- case _: x2.Y[_] => println("match")
19
+ case _: x2.Y[_] => println("wrong")
20
+ case _: x1.Y[_] => println("ok")
21
+ }
22
+ y match {
23
+ case _: Foo[_] => println("wrong")
24
+ case _: Bar[_] => println("ok")
25
26
0 commit comments