Files
kotlin-fork/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt
T
2016-11-09 21:41:12 +03:00

10 lines
262 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
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"
}