[KT-4124] Fix bug when constructing like this: "A.Companion.B()"
This commit is contained in:
@@ -559,7 +559,11 @@ public final class StaticContext {
|
||||
if (container == null) {
|
||||
return null;
|
||||
}
|
||||
return getQualifiedReference(container);
|
||||
JsExpression result = getQualifiedReference(container);
|
||||
if (DescriptorUtils.isCompanionObject(container)) {
|
||||
result = Namer.getCompanionObjectAccessor(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user