diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2012-12-12 16:56:22 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2012-12-13 11:16:52 +0100 |
commit | b2bec5a1355bd271bed86b071823a64eeafc0618 (patch) | |
tree | d2979ea2fdef462fc2f5dfbfecf22cc986da8dfe /test/files/run | |
parent | 107afdc95e902a42851603ad7aab2dd5b9d319dc (diff) | |
download | scala-b2bec5a1355bd271bed86b071823a64eeafc0618.tar.gz scala-b2bec5a1355bd271bed86b071823a64eeafc0618.tar.bz2 scala-b2bec5a1355bd271bed86b071823a64eeafc0618.zip |
SI-6809 Forbids deprecated case class definitions without parameter list
This has been deprecated since at least 2.7.7, so it should be good to go.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/caseclasses.scala | 2 | ||||
-rw-r--r-- | test/files/run/structural.scala | 2 | ||||
-rw-r--r-- | test/files/run/t4415.scala | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/caseclasses.scala b/test/files/run/caseclasses.scala index 5aafea59e3..668c984f3d 100644 --- a/test/files/run/caseclasses.scala +++ b/test/files/run/caseclasses.scala @@ -1,6 +1,6 @@ case class Foo(x: Int)(y: Int) -case class Bar +case class Bar() abstract class Base abstract case class Abs(x: Int) extends Base diff --git a/test/files/run/structural.scala b/test/files/run/structural.scala index 36af8c4bfc..3a703d2cf1 100644 --- a/test/files/run/structural.scala +++ b/test/files/run/structural.scala @@ -152,7 +152,7 @@ object test2 { object test3 { - case class Exc extends Exception + case class Exc() extends Exception object Rec { def f = throw Exc() diff --git a/test/files/run/t4415.scala b/test/files/run/t4415.scala index f96031d650..caf1609b9e 100644 --- a/test/files/run/t4415.scala +++ b/test/files/run/t4415.scala @@ -39,7 +39,7 @@ class SecondProperty extends TopProperty class SubclassSecondProperty extends StandardProperty trait MyProp[T] -case class MyPropImpl[T] extends MyProp[T] +case class MyPropImpl[T]() extends MyProp[T] object SubclassMatch { |