Invoke top level function with default argument using src class
This commit is contained in:
@@ -581,7 +581,7 @@ public class FunctionCodegen extends GenerationStateAware {
|
||||
|
||||
JvmClassName ownerInternalName;
|
||||
if (contextClass instanceof NamespaceDescriptor) {
|
||||
ownerInternalName = NamespaceCodegen.getJVMClassNameForKotlinNs(DescriptorUtils.getFQName(contextClass).toSafe());
|
||||
ownerInternalName = state.getTypeMapper().getOwner(functionDescriptor, kind, true);
|
||||
}
|
||||
else {
|
||||
ownerInternalName = JvmClassName.byType(state.getTypeMapper()
|
||||
|
||||
Reference in New Issue
Block a user