KT-8080 RemoveExplicitTypeArgumentsIntention crashes with AssertionError

This commit is contained in:
Sergey Mashkov
2015-06-15 17:38:24 +03:00
parent 4deefce603
commit 4c0e7e32e7
@@ -73,8 +73,8 @@ public class RemoveExplicitTypeArgumentsIntention : JetSelfTargetingOffsetIndepe
val injector = InjectorForMacros(callExpression.getProject(), callExpression.findModuleDescriptor())
val resolutionResults = injector.getCallResolver().resolveFunctionCall(
BindingTraceContext(), scope, untypedCall, expectedType, dataFlow, false)
assert (resolutionResults.isSingleResult()) {
"Removing type arguments changed resolve for: ${callExpression.getTextWithLocation()} to ${resolutionResults.getResultCode()}"
if (!resolutionResults.isSingleResult()) {
return false
}
val args = originalCall.getTypeArguments()