There was an error while loading. Please reload this page.
2 parents 45a9b3c + 38ba1d5 commit 6b721b6Copy full SHA for 6b721b6
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