Files
kotlin/compiler/testData/codegen/classes/simpleBox.jet
2011-10-20 16:21:18 +02:00

9 lines
148 B
Plaintext

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"
}