diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-22 00:00:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-22 00:00:58 +0200 |
commit | a6d3723d18a554e630a6859bfc6f213f21e3d6cf (patch) | |
tree | 7604aeb89f78f411949b10191158672869202d60 /src/dotty/tools/dotc/parsing | |
parent | b008ceb2aca0ce7cb09d92424e35ffefddcddfdf (diff) | |
parent | ac24603b7c04739d2ea2e2441e3b1f76dc2c9281 (diff) | |
download | dotty-a6d3723d18a554e630a6859bfc6f213f21e3d6cf.tar.gz dotty-a6d3723d18a554e630a6859bfc6f213f21e3d6cf.tar.bz2 dotty-a6d3723d18a554e630a6859bfc6f213f21e3d6cf.zip |
Merge pull request #1615 from sebastianharko/master
Add error messages - Parsers.scala:626 and Parsers.scala:1492
Diffstat (limited to 'src/dotty/tools/dotc/parsing')
-rw-r--r-- | src/dotty/tools/dotc/parsing/Parsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/parsing/Parsers.scala b/src/dotty/tools/dotc/parsing/Parsers.scala index 46e7512f3..292e410f5 100644 --- a/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/src/dotty/tools/dotc/parsing/Parsers.scala @@ -623,7 +623,7 @@ object Parsers { if (inPattern) Block(Nil, inBraces(pattern())) else expr() else { - syntaxErrorOrIncomplete("error in interpolated string: identifier or block expected") + ctx.error(InterpolatedStringError()) EmptyTree } }) @@ -1489,7 +1489,7 @@ object Parsers { private def addModifier(mods: Modifiers): Modifiers = { val flag = flagOfToken(in.token) - if (mods is flag) syntaxError("repeated modifier") + if (mods is flag) syntaxError(RepeatedModifier(flag.toString)) val res = addFlag(mods, flag) in.nextToken() res |