10 lines
262 B
Kotlin
Vendored
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"
|
|
} |