[FIR] Create snapshot of tower data context for postponed callable referneces
This fixes an issue if type of some implicit receiver was changed because of changed smartcast in outer scope ^KT-51228 Fixed
This commit is contained in:
+1
-1
@@ -806,7 +806,7 @@ class BodyResolveContext(
|
||||
|
||||
@OptIn(PrivateForInline::class)
|
||||
fun storeCallableReferenceContext(callableReferenceAccess: FirCallableReferenceAccess) {
|
||||
specialTowerDataContexts.storeCallableReferenceContext(callableReferenceAccess, towerDataContext)
|
||||
specialTowerDataContexts.storeCallableReferenceContext(callableReferenceAccess, towerDataContext.createSnapshot())
|
||||
}
|
||||
|
||||
@OptIn(PrivateForInline::class)
|
||||
|
||||
Reference in New Issue
Block a user