Files
kotlin-fork/backend.native/tests/runtime/basic/boxing0.kt
T
Alexander Gorshenev 268e3b26c0 A couple of new tests
for boxing
    and for body assignment in an interface
2016-11-24 17:46:16 +04:00

11 lines
138 B
Kotlin

class Box<T>(t: T) {
var value = t
}
fun main(args: Array<String>) {
val box: Box<Int> = Box<Int>(17)
println(box.value)
}