Files
kotlin-fork/compiler/testData/codegen/box/classes/simpleBox.kt
T
2019-11-19 11:00:09 +03:00

10 lines
178 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}