Files
kotlin-fork/compiler/testData/codegen/box/classes/simpleBox.kt
T

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