Files
kotlin/compiler/testData/codegen/box/dataClasses/hashCode/boolean.kt
2018-06-09 19:15:38 +03:00

9 lines
187 B
Kotlin
Vendored

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