summaryrefslogblamecommitdiff
path: root/test/files/neg/bug545.scala
blob: 4063b71fd13463fb0b47be4137a435ef742de446 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                          
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!")
  }
}