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 b22331e commit dadbd6eCopy full SHA for dadbd6e
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1176,7 +1176,7 @@ object SymDenotations {
1176
1177
final def scalacLinkedClass(using Context): Symbol =
1178
if (this.is(ModuleClass)) companionNamed(effectiveName.toTypeName)
1179
- else if (this.isClass) companionNamed(effectiveName.moduleClassName)
+ else if (this.isClass) companionNamed(effectiveName.moduleClassName).sourceModule.moduleClass
1180
else NoSymbol
1181
1182
/** Find companion class symbol with given name, or NoSymbol if none exists.
0 commit comments