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

8 lines
191 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Box<T>(val value: T)
fun box() : String {
val b = Box<Long>(2 * 3)
val expected: Long? = 6L
return if (b.value == expected) "OK" else "fail"
}