koin-annotations icon indicating copy to clipboard operation
koin-annotations copied to clipboard

Annotation order affects compilation for @InjectedParam

Open eric-dev-wang opened this issue 3 weeks ago • 0 comments
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

eric-dev-wang avatar Oct 30 '25 06:10 eric-dev-wang