Skip to content

Annotation order affects compilation for @InjectedParam #315

@eric-dev-wang

Description

@eric-dev-wang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions