8 lines
196 B
Kotlin
Vendored
8 lines
196 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_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"
|
|
} |