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 b9c8a60 commit 38ba1d5Copy full SHA for 38ba1d5
tests/pos/12944/12944_1.scala
@@ -0,0 +1,11 @@
1
+object Test1 {
2
+ type ++[L, R] = (L, R) match
3
+ case (Int, Int) => 2
4
+ case (String, String) => "2"
5
+ case (String, Int) => "2"
6
+ case (Int, String) => "2"
7
+
8
+ type Bar[W <: Int] = W ++ "" ++ W
9
10
+ val works = summon[Bar[2] =:= "2"]
11
+}
tests/pos/12944/12944_2.scala
@@ -0,0 +1,5 @@
+import Test1._
+object Test2 {
+ val fails = summon[Bar[2] =:= "2"]
0 commit comments