mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
19 lines
511 B
Kotlin
Vendored
19 lines
511 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
val s = arrayOf("live", "long")
|
|
val t: Array<String> = s.clone()
|
|
if (!(s contentEquals t)) return "Fail string"
|
|
if (s === t) return "Fail string identity"
|
|
|
|
val ss = arrayOf(s, s)
|
|
val tt: Array<Array<String>> = ss.clone()
|
|
if (!(ss contentEquals tt)) return "Fail string[]"
|
|
if (ss === tt) return "Fail string[] identity"
|
|
|
|
return "OK"
|
|
}
|