FIR: fork flow on function entry, restore receivers on exit

^KT-52680 Fixed
This commit is contained in:
pyos
2022-06-09 11:34:59 +02:00
committed by Dmitriy Novozhilov
parent 3ba11711d2
commit 9968fa252a
11 changed files with 116 additions and 23 deletions
@@ -28558,6 +28558,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/smartCasts/implicitReceiver.kt");
}
@Test
@TestMetadata("implicitReceiverAcrossFunctions.kt")
public void testImplicitReceiverAcrossFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/implicitReceiverAcrossFunctions.kt");
}
@Test
@TestMetadata("implicitThisOnRefInLambdaInSmartcast.kt")
public void testImplicitThisOnRefInLambdaInSmartcast() throws Exception {
@@ -28558,6 +28558,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/smartCasts/implicitReceiver.kt");
}
@Test
@TestMetadata("implicitReceiverAcrossFunctions.kt")
public void testImplicitReceiverAcrossFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/implicitReceiverAcrossFunctions.kt");
}
@Test
@TestMetadata("implicitThisOnRefInLambdaInSmartcast.kt")
public void testImplicitThisOnRefInLambdaInSmartcast() throws Exception {