Files
kotlin-fork/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt
T
2020-09-23 15:22:03 +03:00

8 lines
163 B
Kotlin
Vendored

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