koin-annotations
koin-annotations copied to clipboard
Annotation order affects compilation for @InjectedParam
trafficstars
Describe the bug When adding another annotation before @InjectedParam, the code fails to compile. However, placing annotation after @InjectedParam compiles successfully.
To Reproduce Steps to reproduce the behavior:
Open examples/coffee-maker-module/src/main/kotlin/org/koin/example/test/ext/ExternalModule.kt Locate the TestComponentConsumer2 class. Change the constructor parameter to: @Suppress("Unused") @InjectedParam val id: String Try to compile the project. See compilation error.
version 2.3.0