Skip to content

Commit bc94382

Browse files
committed
also check mods for ExtensionMethod
1 parent f54eecb commit bc94382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ object Trees {
344344
else {
345345
val realName = name.stripModuleClassSuffix.lastPart
346346
var length = realName.length
347-
if symbol.is(ExtensionMethod) && name.isExtensionName then
347+
if (mods.is(ExtensionMethod) || symbol.is(ExtensionMethod)) && name.isExtensionName then
348348
length -= "extension_".length
349349
Span(point, point + length, point)
350350
}

0 commit comments

Comments
 (0)