Files
kotlin-fork/backend.native/tests/external/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt
T
2017-03-13 15:31:46 +03:00

7 lines
161 B
Kotlin

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"
}