mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
233 B
Kotlin
Vendored
12 lines
233 B
Kotlin
Vendored
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()
|
|
}
|