From 378233e1f57c7cde1debf5797eedd58c30a0baa0 Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Mon, 19 Oct 2015 09:38:48 +0300 Subject: [PATCH] Test for obsolete KT-8095 #KT-8095 Obsolete --- compiler/testData/codegen/boxInline/private/kt8095.1.kt | 7 +++++++ compiler/testData/codegen/boxInline/private/kt8095.2.kt | 7 +++++++ .../generated/BlackBoxInlineCodegenTestGenerated.java | 6 ++++++ .../CompileKotlinAgainstInlineKotlinTestGenerated.java | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 compiler/testData/codegen/boxInline/private/kt8095.1.kt create mode 100644 compiler/testData/codegen/boxInline/private/kt8095.2.kt 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");