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 f54eecb commit bc94382Copy full SHA for bc94382
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -344,7 +344,7 @@ object Trees {
344
else {
345
val realName = name.stripModuleClassSuffix.lastPart
346
var length = realName.length
347
- if symbol.is(ExtensionMethod) && name.isExtensionName then
+ if (mods.is(ExtensionMethod) || symbol.is(ExtensionMethod)) && name.isExtensionName then
348
length -= "extension_".length
349
Span(point, point + length, point)
350
}
0 commit comments