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

9 lines
204 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
data class A(val a: Int)
fun box() : String {
val v1 = A(-10.toInt()).hashCode()
val v2 = (-10.toInt() as Int?)!!.hashCode()
return if( v1 == v2 ) "OK" else "$v1 $v2"
}