Fix for KT-9855: java.lang.IllegalAccessError when using private package level operator method

#KT-9855 Fixed
This commit is contained in:
Michael Bogdanov
2015-11-05 12:58:56 +03:00
parent bd2b01ac1c
commit 4d77181692
3 changed files with 22 additions and 1 deletions
@@ -3156,7 +3156,7 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
private StackValue generateAugmentedAssignment(KtBinaryExpression expression) {
ResolvedCall<?> resolvedCall = CallUtilKt.getResolvedCallWithAssert(expression, bindingContext);
FunctionDescriptor descriptor = (FunctionDescriptor) resolvedCall.getResultingDescriptor();
FunctionDescriptor descriptor = accessibleFunctionDescriptor(resolvedCall);
Callable callable = resolveToCallable(descriptor, false, resolvedCall);
KtExpression lhs = expression.getLeft();
Type lhsType = expressionType(lhs);