Test for KT-2017 Cannot sort list with no comparator

#KT-2017 obsolete
This commit is contained in:
Evgeny Gerashchenko
2013-03-14 17:20:00 +04:00
parent 8fc5676c95
commit be30716076
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,4 @@
fun box(): String {
val sorted = arrayListOf("1", "3", "2").sort()
return if (sorted != arrayListOf("1", "2", "3")) "$sorted" else "OK"
}
@@ -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");