Ray Rahke
03/16/2024, 6:46 PMsrc/main.kt
and src/helpers/foo.kt
At the top of foo.kt
I say package helpers
, then in main.kt
I do import helpers
. I get
Packages cannot be importedkotlin(PACKAGE_CANNOT_BE_IMPORTED)
Darryl Miles
03/16/2024, 6:50 PMimport helpers.foo
Darryl Miles
03/16/2024, 6:50 PMYoussef Shoaib [MOD]
03/16/2024, 7:02 PMimport helpers.*
. If you just want to be able to write helpers.foo(x)
, then no imports are needed, it just works!