Skip to content

Commit acbe8f1

Browse files
committed
Refine test case for unchecked warnings
1 parent 8feb596 commit acbe8f1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/pos-special/isInstanceOf/3324h.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ object Test {
22
trait Marker
33
def foo[T](x: T) = x match {
44
case _: (T & Marker) => // no warning
5-
case _: T with String => // scalac emits a warning
65
case _ =>
76
}
8-
}
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

Comments
 (0)