JVM_IR: fix wrong check in skipping captured vars

This commit is contained in:
Georgy Bronnikov
2019-12-11 18:41:57 +03:00
parent 26032e4297
commit bb301f8aca
8 changed files with 42 additions and 1 deletions
@@ -3966,6 +3966,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/closures/localClassLambdaClosure.kt");
}
@TestMetadata("localFunInInit.kt")
public void testLocalFunInInit() throws Exception {
runTest("compiler/testData/codegen/box/closures/localFunInInit.kt");
}
@TestMetadata("localFunctionInFunction.kt")
public void testLocalFunctionInFunction() throws Exception {
runTest("compiler/testData/codegen/box/closures/localFunctionInFunction.kt");