Files
kotlin/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt
2016-01-22 05:54:38 +03:00

13 lines
250 B
Kotlin
Vendored

import java.util.HashSet
fun box(): String {
val a = HashSet<String>()
a.add("live")
a.add("long")
a.add("prosper")
val b = a.clone()
if (a != b) return "Fail equals"
if (a === b) return "Fail identity"
return "OK"
}