4911f78200
* Inner classes lowering * cmd line fix * tests * * reverted adding parameter to inner classes constructors * variables are identified by their descriptors * review fixes
15 lines
286 B
Kotlin
15 lines
286 B
Kotlin
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()
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
println(box())
|
|
} |