Boxing.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
86a6771a09
commit
3b7321ef94
@@ -1,10 +0,0 @@
|
||||
|
||||
class Box<T>(t: T) {
|
||||
var value = t
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val box: Box<Int> = Box<Int>(17)
|
||||
println(box.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user