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) {
|
val expression = if (psiCall is CallTransformer.CallForImplicitInvoke) {
|
||||||
psiCall.outerCall.calleeExpression
|
psiCall.outerCall.calleeExpression
|
||||||
} else {
|
} else {
|
||||||
psiCall.calleeExpression
|
psiCall.calleeExpression?.takeIf { it.isPhysical } ?: psiCall.callElement
|
||||||
} ?: return
|
} ?: return
|
||||||
val typeVariable = error.typeVariable as? TypeVariableFromCallableDescriptor ?: return
|
val typeVariable = error.typeVariable as? TypeVariableFromCallableDescriptor ?: return
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-2
@@ -28,7 +28,7 @@ internal class TowerDataElementsForName2() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class TowerDataElementsForName3() {
|
internal class TowerDataElementsForName3() {
|
||||||
val reversedFilteredLocalScopes by lazy(LazyThreadSafetyMode.NONE) {
|
val reversedFilteredLocalScopes by <!INFERRED_INTO_DECLARED_UPPER_BOUNDS!>lazy(LazyThreadSafetyMode.NONE) {
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
@OptIn(ExperimentalStdlibApi::class)
|
||||||
buildList l1@ {
|
buildList l1@ {
|
||||||
for (i in lastIndex downTo 0) {
|
for (i in lastIndex downTo 0) {
|
||||||
@@ -43,7 +43,7 @@ internal class TowerDataElementsForName3() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class TowerDataElementsForName4() {
|
internal class TowerDataElementsForName4() {
|
||||||
|
|||||||
Reference in New Issue
Block a user