summaryrefslogtreecommitdiff
path: root/test/files/run/t0883.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/t0883.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/t0883.scala')
-rwxr-xr-xtest/files/run/t0883.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/t0883.scala b/test/files/run/t0883.scala
index 5cd4418f5b..b9d71702d8 100755
--- a/test/files/run/t0883.scala
+++ b/test/files/run/t0883.scala
@@ -1,4 +1,5 @@
-case class Foo(name: String)
+object Foo { def apply(x: String) = new Foo(x) }
+class Foo(name: String)
case object Bar extends Foo("Bar")
case class Baz extends Foo("Baz")
object Test extends Application {