diff options
Diffstat (limited to 'tests/pending/run/t6089.scala')
-rw-r--r-- | tests/pending/run/t6089.scala | 13 |
1 files changed, 13 insertions, 0 deletions
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 |