From 89bacb9c25a58454ff1878e67f7ea07ffc8c269f Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 12 May 2015 18:30:53 +0200 Subject: Run tests as they were in scala. --- tests/pending/run/t6089.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/pending/run/t6089.scala (limited to 'tests/pending/run/t6089.scala') diff --git a/tests/pending/run/t6089.scala b/tests/pending/run/t6089.scala new file mode 100644 index 000000000..c72d7ba79 --- /dev/null +++ b/tests/pending/run/t6089.scala @@ -0,0 +1,13 @@ +case class Foo(x: Int) + +object Test { + def bippo(result: Boolean): Boolean = result + def bungus(m: Foo): Boolean = + bippo(m match { case Foo(2) => bungus(m) }) + + def main(args: Array[String]): Unit = try { + bungus(Foo(0)) + } catch { + case x: MatchError => println(x) + } +} \ No newline at end of file -- cgit v1.2.3