https://kotlinlang.org logo
#koin
Title
# koin
n

Norbi

09/20/2023, 8:45 AM
When I use annotations, there is a
module
extension property generated for the class annotated by
@Module
:
Copy code
public val some.package.MyModule.module : org.koin.core.module.Module get() = some_package_MyModule // <---

public val some_package_MyModule : Module = module { ... }
How should I use it? Shouldn't it be generated as
MyModule.Companion.module
instead?
I found it: https://insert-koin.io/docs/reference/koin-annotations/modules#class-module-with-module I still think that it should be generated on the
Companion
instead (and require
companion object
to exist until the namespace feature is not available).
1