Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt5056.kt
T
Roman Artemev c5922bf74b Refact stdlib generator, add support for different backends
[JS IR BE] Runtime fixes
 * Do not generate external declarations for IR BE
 * Move `arrayToString` helper function out of shared JS stdlib
 * Fix arrays type check for IR BE
2018-11-29 22:04:53 +03:00

7 lines
157 B
Kotlin
Vendored

// WITH_RUNTIME
fun box(): String {
val list = arrayOf("a", "c", "b").sorted()
return if (list.toString() == "[a, b, c]") "OK" else "Fail: $list"
}