Files
kotlin/compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt
2018-07-03 19:51:58 +03:00

9 lines
188 B
Kotlin
Vendored

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