How do I make it correct (i.e: how to access `print()` in this case)
a
How do I make it correct (i.e: how to access
print()
in this case)
s
would strongly recommend sharing short snippets by wrapping them in triple backticks rather than uploading a screenshot unless the highlighting or IDE message is of particular importance
a
I see, I will do it next time....
k
Is that an Idea theme?
a
Yes, darcula, with custom made highlighting
d
print
is a method in `Base`'s
companion object
. Accessing it with anything other than
Base.print
does not make sense.
Companion objects are not inherited.
a
Oh ok thanks