summaryrefslogtreecommitdiff
path: root/test/files/run/castsingleton.scala
blob: 339f5e00cf5f548abe3e4832932ab88d432d1566 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test extends App {
  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())
}