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 9202810 commit 8c406e9Copy full SHA for 8c406e9
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2075,7 +2075,7 @@ object Parsers {
2075
val mods = modifiers(accessModifierTokens, annotsAsMods())
2076
if (mods.hasAnnotations && !mods.hasFlags)
2077
if (in.token == THIS) in.nextToken()
2078
- else syntaxError(AnnotatedPrimaryConstructorRequiresModifierOrThis(owner))
+ else syntaxError(AnnotatedPrimaryConstructorRequiresModifierOrThis(owner), mods.annotations.last.pos)
2079
mods
2080
}
2081
0 commit comments