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
21 lines
421 B
Kotlin
21 lines
421 B
Kotlin
open class Father(val param: String) {
|
|
abstract inner class InClass {
|
|
fun work(): String {
|
|
return param
|
|
}
|
|
}
|
|
|
|
inner class Child(p: String) : Father(p) {
|
|
inner class Child2 : Father.InClass {
|
|
constructor(): super()
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Father("fail").Child("OK").Child2().work()
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
println(box())
|
|
} |