Files
kotlin/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/binaryExpressionCast.kt
Svyatoslav Kuzmich 89f7ced0d4 [JS IR BE] Unmute tests
2018-10-10 17:27:37 +03:00

7 lines
161 B
Kotlin
Vendored

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