melatonina
04/29/2020, 2:43 PMMySealedClass::method
. I have to write explicitly MySealedClass.Companion::method
. Is this normal?Casey Brooks
04/29/2020, 2:51 PM::
) work differently than calling a method. There is no instance of that class that can be used to help determine it, so the compiler can’t know if MySealedClass::method
refers to fun method()
in MySealedClass
or its Companion
. You could even have the same function in both, so there needs to be a way to resolve the ambiguitymelatonina
04/29/2020, 3:09 PM