FE: properly clear the deferred generator stack

Before this commit the stack wasn't cleared for read variable case.
#KT-47168 Fixed
This commit is contained in:
pyos
2021-06-09 11:36:25 +02:00
committed by teamcityserver
parent 2f632ada42
commit 1f9db7cf25
9 changed files with 60 additions and 7 deletions
@@ -5018,6 +5018,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/contracts/kt45236.kt");
}
@TestMetadata("kt47168.kt")
public void testKt47168() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt47168.kt");
}
@TestMetadata("lambdaParameter.kt")
public void testLambdaParameter() throws Exception {
runTest("compiler/testData/codegen/box/contracts/lambdaParameter.kt");
@@ -4424,6 +4424,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/contracts/kt45236.kt");
}
@TestMetadata("kt47168.kt")
public void testKt47168() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt47168.kt");
}
@TestMetadata("lambdaParameter.kt")
public void testLambdaParameter() throws Exception {
runTest("compiler/testData/codegen/box/contracts/lambdaParameter.kt");
@@ -4424,6 +4424,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/contracts/kt45236.kt");
}
@TestMetadata("kt47168.kt")
public void testKt47168() throws Exception {
runTest("compiler/testData/codegen/box/contracts/kt47168.kt");
}
@TestMetadata("lambdaParameter.kt")
public void testLambdaParameter() throws Exception {
runTest("compiler/testData/codegen/box/contracts/lambdaParameter.kt");