1 2 3 4 5 6 7 8 9 10
object Test extends Application { case class L(); object N extends L(); def empty(xs : L) : Unit = xs match { case x@N => println(x); println(x); } empty(L()) }