Files
kotlin-fork/compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt
T
2018-06-28 12:26:41 +02:00

10 lines
213 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
data class A(val a: Boolean)
fun box() : String {
if (A(true).hashCode() != 1) return "fail1"
if (A(false).hashCode() !=0) return "fail2"
return "OK"
}