diff options
Diffstat (limited to 'test/files/run/t0883.scala')
-rwxr-xr-x | test/files/run/t0883.scala | 3 |
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 { |