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
25 lines
441 B
Kotlin
25 lines
441 B
Kotlin
abstract class Father {
|
|
abstract inner class InClass {
|
|
abstract fun work(): String
|
|
}
|
|
}
|
|
|
|
class Child : Father() {
|
|
val ChildInClass : InClass
|
|
|
|
init {
|
|
ChildInClass = object : Father.InClass() {
|
|
override fun work(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Child().ChildInClass.work()
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
println(box())
|
|
} |