We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ace25 commit feba6a4Copy full SHA for feba6a4
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -540,7 +540,7 @@ object Parsers {
540
def handleThis(qual: Ident) = {
541
in.nextToken()
542
val t = atPos(start) { This(qual) }
543
- if (!thisOK && in.token != DOT) syntaxError(DanglingThisInPath(), start)
+ if (!thisOK && in.token != DOT) syntaxError(DanglingThisInPath(), t.pos)
544
dotSelectors(t, finish)
545
}
546
def handleSuper(qual: Ident) = {
tests/neg/i1845.scala
@@ -1,3 +1,3 @@
1
object Test {
2
type X = FooBar22.this // error
3
-} // error
+}
0 commit comments