Test for KT-2017 Cannot sort list with no comparator
#KT-2017 obsolete
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fun box(): String {
|
||||
val sorted = arrayListOf("1", "3", "2").sort()
|
||||
return if (sorted != arrayListOf("1", "2", "3")) "$sorted" else "OK"
|
||||
}
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user