summaryrefslogtreecommitdiff
path: root/test/pending/run/castsingleton.scala
blob: 171b380dc9073776337dbd9f7585be80117f039e (plain) (blame)
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())
}