Fix callable reference to member of generic class

This commit is contained in:
Alexander Udalov
2015-07-27 14:55:45 +03:00
parent 49a8c7a947
commit a93484b457
3 changed files with 19 additions and 1 deletions
@@ -326,7 +326,7 @@ public class ClosureCodegen extends MemberCodegen<JetElement> {
if (generateBody) {
mv.visitCode();
InstructionAdapter iv = new InstructionAdapter(mv);
Method method = typeMapper.mapSignature(descriptor).getAsmMethod();
Method method = typeMapper.mapSignature(descriptor.getOriginal()).getAsmMethod();
iv.aconst(method.getName() + method.getDescriptor());
iv.areturn(JAVA_STRING_TYPE);
FunctionCodegen.endVisit(iv, "function reference getSignature", element);