diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-27 21:31:05 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-27 21:31:05 +0000 |
commit | 677ca58efb2d759eb674e2e419756afc0e94927d (patch) | |
tree | bab3cf3741403058adb93fae689c8ad82bfcebb7 /src | |
parent | af4338c2b2c443fbca53ee937faaef2dfc0748c8 (diff) | |
download | scala-677ca58efb2d759eb674e2e419756afc0e94927d.tar.gz scala-677ca58efb2d759eb674e2e419756afc0e94927d.tar.bz2 scala-677ca58efb2d759eb674e2e419756afc0e94927d.zip |
A small error message improvement suggested at ...
A small error message improvement suggested at #3092. No review.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 1cfee481bc..497cfc398b 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2630,7 +2630,8 @@ self => } else if (isStatSep) { in.nextToken() } else { - syntaxErrorOrIncomplete("illegal start of statement", true) + val addendum = if (isModifier) " (no modifiers allowed here)" else "" + syntaxErrorOrIncomplete("illegal start of statement" + addendum, true) } } stats.toList |