Skip to content

New Koin compiler cannot find qualifier type #2355

@AlexanderEggers

Description

@AlexanderEggers

Describe the bug
When using a custom annnotation class qualifier, koin is running to "def not found" error.

To Reproduce
Define qualifier like:

@Qualifier
annotation class MyAnnotation

Declare it like this in a module:

@Single
@MyAnnotation
fun provideMySingle(): A {
  return A
}

Use it in a constructor like:

@MyAnnotation instance: A

Expected behavior
Works as expected.

Koin module and version:
4.2.0-RC1

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