Follow

Pro tip: Kotlin imports many packages by default, but a few special types are more “default” than the rest!

When matching an unqualified name, the Kotlin compiler typically looks in the current package first, then in any explicitly-imported package, then finally in the default-imported packages. The last are listed here:
kotlinlang.org/docs/packages.h

Thread...

· · Web · 1 · 1 · 0