summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.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 /src/compiler/scala/tools/nsc/ast/parser/Parsers.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 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index 679ef1a0c9..8a53c5836c 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -2153,8 +2153,8 @@ self =>
val start = in.offset
newLineOptWhenFollowedBy(LPAREN)
if (ofCaseClass && in.token != LPAREN)
- deprecationWarning(in.lastOffset, "case classes without a parameter list have been deprecated;\n"+
- "use either case objects or case classes with `()' as parameter list.")
+ syntaxError(in.lastOffset, "case classes without a parameter list are not allowed;\n"+
+ "use either case objects or case classes with an explicit `()' as a parameter list.")
while (implicitmod == 0 && in.token == LPAREN) {
in.nextToken()
vds += paramClause()