JVM_IR: generate "safe" names for functions in init blocks

This commit is contained in:
Dmitry Petrov
2020-07-22 11:53:05 +03:00
parent bb8f857809
commit 1272162a7f
14 changed files with 209 additions and 6 deletions
@@ -4378,6 +4378,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/closures/localFunctionInFunction.kt");
}
@TestMetadata("localFunctionInInitBlock.kt")
public void testLocalFunctionInInitBlock() throws Exception {
runTest("compiler/testData/codegen/box/closures/localFunctionInInitBlock.kt");
}
@TestMetadata("localFunctionInInitializer.kt")
public void testLocalFunctionInInitializer() throws Exception {
runTest("compiler/testData/codegen/box/closures/localFunctionInInitializer.kt");