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

14 lines
270 B
Kotlin
Vendored

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