From 63f7f9052197eb287d5b41065480e1af068ba074 Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Wed, 28 Oct 2015 14:31:19 +0300 Subject: [PATCH] Test for obsolete KT-8047 #KT-8047 Obsolete --- compiler/testData/codegen/boxInline/reified/kt8047.1.kt | 6 ++++++ compiler/testData/codegen/boxInline/reified/kt8047.2.kt | 5 +++++ .../generated/BlackBoxInlineCodegenTestGenerated.java | 6 ++++++ .../CompileKotlinAgainstInlineKotlinTestGenerated.java | 6 ++++++ 4 files changed, 23 insertions(+) create mode 100644 compiler/testData/codegen/boxInline/reified/kt8047.1.kt create mode 100644 compiler/testData/codegen/boxInline/reified/kt8047.2.kt diff --git a/compiler/testData/codegen/boxInline/reified/kt8047.1.kt b/compiler/testData/codegen/boxInline/reified/kt8047.1.kt new file mode 100644 index 00000000000..e155e12d2fb --- /dev/null +++ b/compiler/testData/codegen/boxInline/reified/kt8047.1.kt @@ -0,0 +1,6 @@ +import test.* + +fun box(): String { + f() {} + return "OK" +} diff --git a/compiler/testData/codegen/boxInline/reified/kt8047.2.kt b/compiler/testData/codegen/boxInline/reified/kt8047.2.kt new file mode 100644 index 00000000000..a6546500785 --- /dev/null +++ b/compiler/testData/codegen/boxInline/reified/kt8047.2.kt @@ -0,0 +1,5 @@ +package test + +inline fun f(x : () -> Unit) { + object { init { arrayOf() } } +} diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java index 2cc2314057d..305c4799b70 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxInlineCodegenTestGenerated.java @@ -1090,6 +1090,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo doTestMultiFileWithInlineCheck(fileName); } + @TestMetadata("kt8047.1.kt") + public void testKt8047() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/kt8047.1.kt"); + doTestMultiFileWithInlineCheck(fileName); + } + @TestMetadata("packages.1.kt") public void testPackages() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/packages.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 eb2225aed0d..51e0c71557b 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -1090,6 +1090,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi doBoxTestWithInlineCheck(fileName); } + @TestMetadata("kt8047.1.kt") + public void testKt8047() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/kt8047.1.kt"); + doBoxTestWithInlineCheck(fileName); + } + @TestMetadata("packages.1.kt") public void testPackages() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/reified/packages.1.kt");