mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
8 lines
183 B
Kotlin
Vendored
8 lines
183 B
Kotlin
Vendored
data class A(val a: Long)
|
|
|
|
fun box() : String {
|
|
val v1 = A(-10.toLong()).hashCode()
|
|
val v2 = (-10.toLong() as Long?)!!.hashCode()
|
|
return if( v1 == v2 ) "OK" else "$v1 $v2"
|
|
}
|