diff --git a/compiler/testData/codegen/boxInline/private/kt8095.1.kt b/compiler/testData/codegen/boxInline/private/kt8095.1.kt new file mode 100644 index 00000000000..0e417b136fd --- /dev/null +++ b/compiler/testData/codegen/boxInline/private/kt8095.1.kt @@ -0,0 +1,7 @@ +import test.* + +fun box(): String { + var r = "fail" + C("OK").g { r = it } + return r +} \ No newline at end of file diff --git a/compiler/testData/codegen/boxInline/private/kt8095.2.kt b/compiler/testData/codegen/boxInline/private/kt8095.2.kt new file mode 100644 index 00000000000..bbeb6a4f940 --- /dev/null +++ b/compiler/testData/codegen/boxInline/private/kt8095.2.kt @@ -0,0 +1,7 @@ +package test + +class C(private val a : String) { + internal inline fun g(x: (s: String) -> Unit) { + x(a) + } +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java index 7c1c6a021ac..f971895b19f 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java @@ -1009,6 +1009,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo doTestMultiFileWithInlineCheck(fileName); } + @TestMetadata("kt8095.1.kt") + public void testKt8095() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8095.1.kt"); + doTestMultiFileWithInlineCheck(fileName); + } + @TestMetadata("privateInInlineInMultiFileFacade.1.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.1.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java index da2f126d68b..edd4ea50a50 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -1009,6 +1009,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi doBoxTestWithInlineCheck(fileName); } + @TestMetadata("kt8095.1.kt") + public void testKt8095() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/kt8095.1.kt"); + doBoxTestWithInlineCheck(fileName); + } + @TestMetadata("privateInInlineInMultiFileFacade.1.kt") public void testPrivateInInlineInMultiFileFacade() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/private/privateInInlineInMultiFileFacade.1.kt");