summaryrefslogtreecommitdiff
path: root/test/files/pos/infer2-pos.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2012-12-12 16:56:22 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2012-12-13 11:16:52 +0100
commitb2bec5a1355bd271bed86b071823a64eeafc0618 (patch)
treed2979ea2fdef462fc2f5dfbfecf22cc986da8dfe /test/files/pos/infer2-pos.scala
parent107afdc95e902a42851603ad7aab2dd5b9d319dc (diff)
downloadscala-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/pos/infer2-pos.scala')
-rw-r--r--test/files/pos/infer2-pos.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/infer2-pos.scala b/test/files/pos/infer2-pos.scala
index 06d0f5814f..0ed9666f40 100644
--- a/test/files/pos/infer2-pos.scala
+++ b/test/files/pos/infer2-pos.scala
@@ -1,7 +1,7 @@
package test
class Lst[T]
case class cons[T](x: T, xs: Lst[T]) extends Lst[T]
-case class nil[T] extends Lst[T]
+case class nil[T]() extends Lst[T]
object test {
Console.println(cons(1, nil()))
}