mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
7 lines
161 B
Kotlin
Vendored
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"
|
|
} |