summaryrefslogtreecommitdiff
path: root/test/files/run/caseclasses.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-09-11 15:23:05 +0000
committerPaul Phillips <paulp@improving.org>2009-09-11 15:23:05 +0000
commit61ff261346289f7886350a8a4da5688574070e59 (patch)
tree4869fbb98aebf26b97b473ba27a0ea0deba72874 /test/files/run/caseclasses.scala
parent8871528f60958a45eb119a5cc487f87215e4e92f (diff)
downloadscala-61ff261346289f7886350a8a4da5688574070e59.tar.gz
scala-61ff261346289f7886350a8a4da5688574070e59.tar.bz2
scala-61ff261346289f7886350a8a4da5688574070e59.zip
Deprecated case classes inheriting from other c...
Deprecated case classes inheriting from other case classes, and updated all the tests which did so.
Diffstat (limited to 'test/files/run/caseclasses.scala')
-rw-r--r--test/files/run/caseclasses.scala6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/files/run/caseclasses.scala b/test/files/run/caseclasses.scala
index 56fe6dad96..ed5643a709 100644
--- a/test/files/run/caseclasses.scala
+++ b/test/files/run/caseclasses.scala
@@ -2,8 +2,6 @@ case class Foo(x: Int)(y: Int)
case class Bar
-case class Baz(override val x: Int, y: Int) extends Foo(x)(y)
-
abstract class Base
abstract case class Abs(x: Int) extends Base
@@ -30,10 +28,6 @@ object Test extends Application {
case Foo(1) => Console.println("OK")
case Bar() => Console.println("NO")
}
- (Baz(1, 2): AnyRef) match {
- case Baz(1, 2) => ;
- case Bar() => Console.println("NO")
- }
try {
Bar() productElement 3
throw new NullPointerException("duh")