Files
kotlin-fork/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt
T
2018-06-09 19:15:38 +03:00

8 lines
191 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class Box<T>(val value: T)
fun box() : String {
val b = Box<Long>(x@ (1 + 2))
val expected: Long? = 3L
return if (b.value == expected) "OK" else "fail"
}