89b8bbec57
Fixes weird cases like super-call from a closure inside a trait with a required class
17 lines
220 B
Kotlin
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"
|
|
}
|