JVM: preserve call site markers when inlining lambdas

and default functions into their own stubs.

Fixes #KT-35006
This commit is contained in:
pyos
2020-03-25 16:41:47 +01:00
committed by max-kammerer
parent 9d21800d8f
commit e98bdc6f8e
18 changed files with 250 additions and 81 deletions
@@ -3280,6 +3280,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/smap/defaultFunction.kt");
}
@TestMetadata("defaultFunctionWithInlineCall.kt")
public void testDefaultFunctionWithInlineCall() throws Exception {
runTest("compiler/testData/codegen/boxInline/smap/defaultFunctionWithInlineCall.kt");
}
@TestMetadata("interleavedFiles.kt")
public void testInterleavedFiles() throws Exception {
runTest("compiler/testData/codegen/boxInline/smap/interleavedFiles.kt");
@@ -3300,6 +3305,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/smap/kt23369_3.kt");
}
@TestMetadata("kt35006.kt")
public void testKt35006() throws Exception {
runTest("compiler/testData/codegen/boxInline/smap/kt35006.kt");
}
@TestMetadata("oneFile.kt")
public void testOneFile() throws Exception {
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");