Auto completion doesn’t seem to work for top-level...
# android-studio
m
Auto completion doesn’t seem to work for top-level operator extension functions like:
Copy code
operator fun Foo.Companion.invoke() = Foo.createInstance()
I type “Foo” but auto-completion doesn’t bring up any suggestion. I need to autocomplete
Foo.invoke
instead (to insert the
invoke
import) and then I can remove the
invoke
(now that the import has been added). To test this, you need to have the declaration in a different file to where you are calling, of course.