How can I call the `super` method in an overriden ...
# announcements
f
How can I call the
super
method in an overriden extension method?
Copy code
open class Foo {
    open fun Int.bar() {
        println("Bar")
    }
}

class FooImpl : Foo() {
    override fun Int.bar() {
        super.bar() // Unresolved reference
    }
}
In this case, how can I call
Foo#bar
inside
FooImpl#bar
?
🤔 1
w
What’s interesting, with this code IDE thinks there’s no recursive call, while in fact there is and this crashes with a stack overflow 😄
i
f
Hmm. Maybe 1.4 will fix this. seems simple enough
i
@wasyl Thank you! I've created an issue — https://youtrack.jetbrains.com/issue/KT-34982
👍 3
a
Wont this@Foo.bar() help?
🚫 1