Use 'mapToCallableMethod' for delegateTo signature calculation

#KT-9707 Fixed
This commit is contained in:
Denis Zharkov
2016-01-20 15:58:54 +03:00
parent 3a7ed33de1
commit ba506170e9
5 changed files with 60 additions and 1 deletions
@@ -916,7 +916,7 @@ public class FunctionCodegen {
@NotNull MethodContext context,
@NotNull MemberCodegen<?> parentCodegen
) {
Method delegateToMethod = typeMapper.mapSignature(delegatedTo).getAsmMethod();
Method delegateToMethod = typeMapper.mapToCallableMethod(delegatedTo, /* superCall = */ false).getAsmMethod();
Method delegateMethod = typeMapper.mapSignature(delegateFunction).getAsmMethod();
Type[] argTypes = delegateMethod.getArgumentTypes();