How to write a function reference (like `someInsta...
# getting-started
m
How to write a function reference (like
someInstance::someFun
) but where the function has a receiver?
s
What do you mean? are you trying to reference an extension function?
m
Yes, a function like
fun OtherClass.someFun()
defined in some class
SomeClass
.
a
References to extension functions that are members of a class are not allowed. It would work if you moved it to top-level.
👍 1
m
Thanks. Out of interest, is there anything in the docs that mentions this?
d
Is there a reason for this other than the type syntax would be fugly?