mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
148 B
Kotlin
Vendored
9 lines
148 B
Kotlin
Vendored
class Box<T>(t: T) {
|
|
var value = t
|
|
}
|
|
|
|
fun box(): String {
|
|
val box: Box<Int> = Box<Int>(1)
|
|
return if (box.value == 1) "OK" else "fail"
|
|
}
|