2f9bde4482
* bug fix * bug fix with nested inner classes * - fixed FixMeInner - support of inner classes in local classes - support of object expressions in initializers * comments * merged modification * - review fixes - tests * review fixes * review fixes
13 lines
260 B
Kotlin
13 lines
260 B
Kotlin
open class Outer(val outer: String) {
|
|
open inner class Inner(val inner: String): Outer(inner) {
|
|
fun foo() = outer
|
|
}
|
|
|
|
fun value() = Inner("OK").foo()
|
|
}
|
|
|
|
fun box() = Outer("Fail").value()
|
|
|
|
fun main(args : Array<String>) {
|
|
println(box())
|
|
} |