Files
kotlin-fork/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/superConstructor.kt
T
2019-11-19 11:00:09 +03:00

8 lines
200 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Base<T>(val value: T)
class Box(): Base<Long>(-1)
fun box(): String {
val expected: Long? = -1L
return if (Box().value == expected) "OK" else "fail"
}