Tests for ticket #1503.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@16541 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
DRMacIver 2008-11-10 21:03:16 +00:00
parent baba226b01
commit cc816ced15
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
L()
L()

View File

@ -0,0 +1,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())
}