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

8 lines
181 B
Kotlin
Vendored

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