Report error about uninferred type parameter for all CallForImplicitInvoke psi calls
^KT-44368 Fixed
This commit is contained in:
+8
-2
@@ -446,8 +446,14 @@ class DiagnosticReporterByTrackingStrategy(
|
||||
|
||||
if (isDiagnosticRedundant) return
|
||||
val expression = when (val atom = error.resolvedAtom.atom) {
|
||||
is PSIKotlinCallForInvoke -> (atom.psiCall as? CallTransformer.CallForImplicitInvoke)?.outerCall?.calleeExpression
|
||||
is PSIKotlinCall -> atom.psiCall.calleeExpression
|
||||
is PSIKotlinCall -> {
|
||||
val psiCall = atom.psiCall
|
||||
if (psiCall is CallTransformer.CallForImplicitInvoke) {
|
||||
psiCall.outerCall.calleeExpression
|
||||
} else {
|
||||
psiCall.calleeExpression
|
||||
}
|
||||
}
|
||||
is PSIKotlinCallArgument -> atom.valueArgument.getArgumentExpression()
|
||||
else -> call.calleeExpression
|
||||
} ?: return
|
||||
|
||||
Reference in New Issue
Block a user