Files
kotlin/compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt
2019-11-19 11:00:09 +03:00

9 lines
192 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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"
}