is there a way to add an extension function to a j...
# announcements
e
is there a way to add an extension function to a java class?
Copy code
class Whatever // Java
// kotlin
fun Whatever.String.extend() = 3
fun a(block: Whatever.()->Unit) {
   Whatever().block()
}
// in order to do somewhere in code
    a {
        "hello".extend()
    }
r
No, multiple receivers are not (yet?) supported.
e
is there a ticket for that?
r
Several I believe, but I can't look it up right now, sorry.
e
no problem, dear