Files
kotlin/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt
2016-11-21 18:20:33 +03:00

13 lines
248 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
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"
}