diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-05-25 12:50:36 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-05-26 13:20:10 +0200 |
commit | fc419f55e29b7e77e9062d40a0864086f8d51bfa (patch) | |
tree | 70d1420157c4bd5cd4cd3613bcbc7e13a1cfa113 /tests/run | |
parent | 6b48e990d7e7d59cc5a67942a455eadcd9f4570f (diff) | |
download | dotty-fc419f55e29b7e77e9062d40a0864086f8d51bfa.tar.gz dotty-fc419f55e29b7e77e9062d40a0864086f8d51bfa.tar.bz2 dotty-fc419f55e29b7e77e9062d40a0864086f8d51bfa.zip |
Don't evaluate isInstanceOf for value classes, disable bugged tests
The tests `i1059.scala` and `t3480.scala` are failing due to a bug
in pattern matcher that evaluates the `x` in `List(x: _*)` incorrectly.
Concerned issue: #1276
Diffstat (limited to 'tests/run')
-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") } |