From acbe8f18d2e2ef91de8669a264132158357a3ef0 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Tue, 24 Apr 2018 18:32:12 +0200 Subject: [PATCH] Refine test case for unchecked warnings --- tests/pos-special/isInstanceOf/3324h.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/pos-special/isInstanceOf/3324h.scala b/tests/pos-special/isInstanceOf/3324h.scala index a1f299a67209..0e718218a6ef 100644 --- a/tests/pos-special/isInstanceOf/3324h.scala +++ b/tests/pos-special/isInstanceOf/3324h.scala @@ -2,7 +2,11 @@ object Test { trait Marker def foo[T](x: T) = x match { case _: (T & Marker) => // no warning - case _: T with String => // scalac emits a warning case _ => } -} \ No newline at end of file + + def foo2[T](x: T) = x match { + case _: T with Marker => // scalac emits a warning + case _ => + } +}