diff options
Diffstat (limited to 'tests/run/t6637.scala')
-rw-r--r-- | tests/run/t6637.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/run/t6637.scala b/tests/run/t6637.scala index 7f9c3cd61..052e7f5d6 100644 --- a/tests/run/t6637.scala +++ b/tests/run/t6637.scala @@ -1,7 +1,6 @@ - object Test extends dotty.runtime.LegacyApp { try { - class A ; class B ; List().head.isInstanceOf[A with B] + List().head } catch { case _ :java.util.NoSuchElementException => println("ok") } |