diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-05-12 13:21:58 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-05-12 13:21:58 +0200 |
commit | 3bbf6328dc325363dedfbc6068e7ae3fbbc10cdb (patch) | |
tree | 4fb3acb280ae9a5e45e24bf684ea194307a2cb32 /test/files/run/t4025.check | |
parent | 3511e5960d510eafcb67c388ec0b5b60aafdd8f3 (diff) | |
download | scala-3bbf6328dc325363dedfbc6068e7ae3fbbc10cdb.tar.gz scala-3bbf6328dc325363dedfbc6068e7ae3fbbc10cdb.tar.bz2 scala-3bbf6328dc325363dedfbc6068e7ae3fbbc10cdb.zip |
A REPL pattern matching crasher that crashes no more.
Not due to virtpatmat, mind you; it passes with -Xoldpatmat.
Closes SI-4025.
Diffstat (limited to 'test/files/run/t4025.check')
-rw-r--r-- | test/files/run/t4025.check | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t4025.check b/test/files/run/t4025.check new file mode 100644 index 0000000000..6715003cb6 --- /dev/null +++ b/test/files/run/t4025.check @@ -0,0 +1,19 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> class Color(val red: Int) +defined class Color + +scala> + +scala> case class Red(r:Int) extends Color(r) +defined class Red + +scala> + +scala> def f(c: Any) = c match { case Red(_) => () } +f: (c: Any)Unit + +scala> |