[FIR] Fix resolve inside lambda
The lambda is passed to extension function with type parameters that defined inside this lambda ^KT-52197 ^KT-52190 Fixed
This commit is contained in:
@@ -354,7 +354,9 @@ private inline fun <T : FirExpression> BodyResolveComponents.transformExpression
|
||||
|
||||
val originalType = expression.resultType.coneType
|
||||
val allTypes = typesFromSmartCast.also {
|
||||
it += originalType
|
||||
if (originalType !is ConeStubType) {
|
||||
it += originalType
|
||||
}
|
||||
}
|
||||
val intersectedType = ConeTypeIntersector.intersectTypes(session.typeContext, allTypes)
|
||||
if (intersectedType == originalType) return null
|
||||
|
||||
Reference in New Issue
Block a user