Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/regressions/kt2017.kt
T
Evgeny Gerashchenko be30716076 Test for KT-2017 Cannot sort list with no comparator
#KT-2017 obsolete
2013-03-14 20:49:41 +04:00

4 lines
145 B
Kotlin

fun box(): String {
val sorted = arrayListOf("1", "3", "2").sort()
return if (sorted != arrayListOf("1", "2", "3")) "$sorted" else "OK"
}