blob: 8fb4082b740391cbcdccd85b2bd727d84000d96d (
plain) (
tree)
|
|
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)
}
}
|