Files
kotlin/compiler/testData/codegen/box/dataClasses/hashCode/genericNull.kt
2019-11-19 11:00:09 +03:00

9 lines
168 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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"
}