K1: don't report InferredIntoDeclaredUpperBound on non-physical element
#KT-56169 Fixed
This commit is contained in:
committed by
Space Team
parent
980ab41ef1
commit
2fb79bf0b1
+1
-1
@@ -584,7 +584,7 @@ class DiagnosticReporterByTrackingStrategy(
|
||||
val expression = if (psiCall is CallTransformer.CallForImplicitInvoke) {
|
||||
psiCall.outerCall.calleeExpression
|
||||
} else {
|
||||
psiCall.calleeExpression
|
||||
psiCall.calleeExpression?.takeIf { it.isPhysical } ?: psiCall.callElement
|
||||
} ?: return
|
||||
val typeVariable = error.typeVariable as? TypeVariableFromCallableDescriptor ?: return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user