diff options
author | Jonathan Brachthäuser <jonathan@b-studios.de> | 2017-01-08 16:37:33 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-08 20:11:15 +0100 |
commit | 7113db7a638868edd72e5f1a89a16ed85641a20f (patch) | |
tree | 28312b0eab96ed8ed42a180db6c3e468796e3188 /compiler/src/dotty | |
parent | 42227a61e1a9cbdb9bfdc8cf2e99e3f675f9994e (diff) | |
download | dotty-7113db7a638868edd72e5f1a89a16ed85641a20f.tar.gz dotty-7113db7a638868edd72e5f1a89a16ed85641a20f.tar.bz2 dotty-7113db7a638868edd72e5f1a89a16ed85641a20f.zip |
Improve error position and drop second error since it is pruned
Diffstat (limited to 'compiler/src/dotty')
-rw-r--r-- | compiler/src/dotty/tools/dotc/parsing/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala index 20a507213..f62093db0 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -540,7 +540,7 @@ object Parsers { def handleThis(qual: Ident) = { in.nextToken() val t = atPos(start) { This(qual) } - if (!thisOK && in.token != DOT) syntaxError(DanglingThisInPath(), start) + if (!thisOK && in.token != DOT) syntaxError(DanglingThisInPath(), t.pos) dotSelectors(t, finish) } def handleSuper(qual: Ident) = { |