Using more specific class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-22 14:57:53 +04:00
parent 104f15adc4
commit b77fbf37b6
3 changed files with 12 additions and 10 deletions
@@ -1876,11 +1876,11 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
}
if (funDescriptor instanceof SimpleFunctionDescriptor) {
ClassDescriptor samInterface = bindingContext.get(
ClassDescriptorFromJvmBytecode samInterface = bindingContext.get(
JavaBindingContext.SAM_CONSTRUCTOR_TO_INTERFACE, ((SimpleFunctionDescriptor) funDescriptor).getOriginal());
if (samInterface != null) {
return invokeSamConstructor(expression, resolvedCall, (ClassDescriptorFromJvmBytecode) samInterface);
return invokeSamConstructor(expression, resolvedCall, samInterface);
}
}