summaryrefslogtreecommitdiff
path: root/test/files/run/castsingleton.scala
blob: f9074677415e03e56df3e54f1e8598be4d3f333a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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);
    case x    => println(x); println(x);
  }

  empty(L())
}