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

9 lines
163 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
data class A<T>(val t: T)
fun box(): String {
val h = A<String?>(null).hashCode()
if (h != 0) return "Fail $h"
return "OK"
}