legacy-svn-scala/test/files/neg/bug545.scala

9 lines
164 B
Scala

object Test {
class Foo
val foo = new Foo
val x = foo.blah match {
case List(x) => x
case Nil => null
case _ => throw new Error("too many!")
}
}