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 d97bce0 commit e5fc2beCopy full SHA for e5fc2be
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -338,7 +338,7 @@ object Trees {
338
*/
339
def namePos =
340
if (pos.exists)
341
- if (rawMods.is(Synthetic)) Position(pos.point, pos.point)
+ if (rawMods.is(Synthetic) || name.toTermName == nme.ERROR) Position(pos.point, pos.point)
342
else Position(pos.point, pos.point + name.stripModuleClassSuffix.lastPart.length, pos.point)
343
else pos
344
}
0 commit comments