NI: intersect DFI types before capturing
^KT-37887 Fixed
This commit is contained in:
@@ -72,7 +72,7 @@ class ParseErrorKotlinCallArgument(
|
||||
) : ExpressionKotlinCallArgument, SimplePSIKotlinCallArgument() {
|
||||
override val receiver = ReceiverValueWithSmartCastInfo(
|
||||
TransientReceiver(ErrorUtils.createErrorType("Error type for ParseError-argument $valueArgument")),
|
||||
possibleTypes = emptySet(),
|
||||
typesFromSmartCasts = emptySet(),
|
||||
isStable = true
|
||||
)
|
||||
|
||||
|
||||
@@ -471,7 +471,7 @@ class PSICallResolver(
|
||||
private fun createReceiverCallArgument(variable: KotlinResolutionCandidate): SimpleKotlinCallArgument {
|
||||
variable.forceResolution()
|
||||
val variableReceiver = createReceiverValueWithSmartCastInfo(variable)
|
||||
if (variableReceiver.possibleTypes.isNotEmpty()) {
|
||||
if (variableReceiver.hasTypesFromSmartCasts()) {
|
||||
return ReceiverExpressionKotlinCallArgument(
|
||||
createReceiverValueWithSmartCastInfo(variable),
|
||||
isForImplicitInvoke = true
|
||||
|
||||
Reference in New Issue
Block a user