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 8feb596 + acbe8f1 commit e77604dCopy full SHA for e77604d
tests/pos-special/isInstanceOf/3324h.scala
@@ -2,7 +2,11 @@ object Test {
2
trait Marker
3
def foo[T](x: T) = x match {
4
case _: (T & Marker) => // no warning
5
- case _: T with String => // scalac emits a warning
6
case _ =>
7
}
8
-}
+
+ def foo2[T](x: T) = x match {
9
+ case _: T with Marker => // scalac emits a warning
10
+ case _ =>
11
+ }
12
+}
0 commit comments