Files
kotlin/compiler/testData/codegen/box/innerNested/innerGeneric.kt
2019-11-19 11:00:09 +03:00

13 lines
263 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Outer {
inner class Inner<T>(val t: T) {
fun box() = t
}
}
fun box(): String {
if (Outer().Inner("OK").box() != "OK") return "Fail"
val x: Outer.Inner<String> = Outer().Inner("OK")
return x.box()
}