KT-8080 RemoveExplicitTypeArgumentsIntention crashes with AssertionError
This commit is contained in:
+2
-2
@@ -73,8 +73,8 @@ public class RemoveExplicitTypeArgumentsIntention : JetSelfTargetingOffsetIndepe
|
|||||||
val injector = InjectorForMacros(callExpression.getProject(), callExpression.findModuleDescriptor())
|
val injector = InjectorForMacros(callExpression.getProject(), callExpression.findModuleDescriptor())
|
||||||
val resolutionResults = injector.getCallResolver().resolveFunctionCall(
|
val resolutionResults = injector.getCallResolver().resolveFunctionCall(
|
||||||
BindingTraceContext(), scope, untypedCall, expectedType, dataFlow, false)
|
BindingTraceContext(), scope, untypedCall, expectedType, dataFlow, false)
|
||||||
assert (resolutionResults.isSingleResult()) {
|
if (!resolutionResults.isSingleResult()) {
|
||||||
"Removing type arguments changed resolve for: ${callExpression.getTextWithLocation()} to ${resolutionResults.getResultCode()}"
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
val args = originalCall.getTypeArguments()
|
val args = originalCall.getTypeArguments()
|
||||||
|
|||||||
Reference in New Issue
Block a user