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.
2 parents edaed8e + 3fe6244 commit 267b9ceCopy full SHA for 267b9ce
tests/patmat/null.check
@@ -1,4 +1,4 @@
1
6: Pattern Match
2
13: Pattern Match
3
-20: Pattern Match
4
-21: Match case Unreachable
+20: Match case Unreachable
+21: Pattern Match
tests/pos/i21768.scala
@@ -0,0 +1,12 @@
+
+trait Foo[T]:
+ def foo(v: T): Unit
5
+given myFooOfInt:
6
+ Foo[Int] with
7
+ def foo(v: Int): Unit = ???
8
9
+given myFooOfLong:
10
+ Foo[Long] = new Foo[Long] {
11
+ def foo(v: Long): Unit = ???
12
+ }
0 commit comments