From fc419f55e29b7e77e9062d40a0864086f8d51bfa Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Wed, 25 May 2016 12:50:36 +0200 Subject: 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 --- tests/neg/i1255.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/neg/i1255.scala (limited to 'tests/neg/i1255.scala') diff --git a/tests/neg/i1255.scala b/tests/neg/i1255.scala new file mode 100644 index 000000000..3bb7e8f25 --- /dev/null +++ b/tests/neg/i1255.scala @@ -0,0 +1,6 @@ +object Test { + def foo(x: Option[Int]) = x match { + case Some(_: Double) => true // error + case None => true + } +} -- cgit v1.2.3