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
15 lines
226 B
Kotlin
15 lines
226 B
Kotlin
fun foo(s: String): String {
|
|
open class Local {
|
|
fun f() = s
|
|
}
|
|
|
|
open class Derived: Local() {
|
|
fun g() = f()
|
|
}
|
|
|
|
return Derived().g()
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
println(foo("OK"))
|
|
} |