Invoke top level function with default argument using src class

This commit is contained in:
Natalia.Ukhorskaya
2013-04-09 16:25:21 +04:00
parent ce5ad80881
commit 1dce3b5da4
3 changed files with 10 additions and 1 deletions
@@ -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()