diff --git a/compiler/testData/codegen/boxWithStdlib/arrays/kt7009.kt b/compiler/testData/codegen/boxWithStdlib/arrays/kt7009.kt new file mode 100644 index 00000000000..d1c7fb6b78b --- /dev/null +++ b/compiler/testData/codegen/boxWithStdlib/arrays/kt7009.kt @@ -0,0 +1,4 @@ +fun box() : String { + val value = (1 to doubleArray(1.0)).second[0] + return if (value == 1.0) "OK" else "fail" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java index 64ff550ddbe..b518bb78c82 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java @@ -233,6 +233,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode doTestWithStdlib(fileName); } + @TestMetadata("kt7009.kt") + public void testKt7009() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/arrays/kt7009.kt"); + doTestWithStdlib(fileName); + } + @TestMetadata("kt7338.kt") public void testKt7338() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/arrays/kt7338.kt");