Files
kotlin-fork/compiler/testData/codegen/traits/withRequiredSuper.kt
T
Alexander Udalov 89b8bbec57 Do not add extra 'this' parameter for TImpl's accessor
Fixes weird cases like super-call from a closure inside a trait with a required
class
2012-11-07 17:06:18 +04:00

17 lines
220 B
Kotlin

open class Base {
open fun foo() { }
}
trait Derived : Base {
override fun foo() {
super.foo()
}
}
class DerivedImpl : Derived, Base()
fun box(): String {
DerivedImpl().foo()
return "OK"
}