[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:
+6
@@ -3741,6 +3741,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastInByClause.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastOnImplicitReceiverOfCallableReference.kt")
|
||||
public void testSmartcastOnImplicitReceiverOfCallableReference() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastOnImplicitReceiverOfCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartcastToNothing.kt")
|
||||
public void testSmartcastToNothing() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user