diff --git a/compiler/testData/codegen/boxWithStdlib/regressions/kt2017.kt b/compiler/testData/codegen/boxWithStdlib/regressions/kt2017.kt new file mode 100644 index 00000000000..86c3392ecbd --- /dev/null +++ b/compiler/testData/codegen/boxWithStdlib/regressions/kt2017.kt @@ -0,0 +1,4 @@ +fun box(): String { + val sorted = arrayListOf("1", "3", "2").sort() + return if (sorted != arrayListOf("1", "2", "3")) "$sorted" else "OK" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java index 837e0ab300c..2d014884dc9 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxWithStdlibCodegenTestGenerated.java @@ -656,6 +656,11 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt1932.kt"); } + @TestMetadata("kt2017.kt") + public void testKt2017() throws Exception { + doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt2017.kt"); + } + @TestMetadata("kt2210.kt") public void testKt2210() throws Exception { doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/regressions/kt2210.kt");