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

8 lines
191 B
Kotlin
Vendored

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