You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've just updated our project from Koin 3.5.6 -> 4.0.1, and Koin Annotations 1.3.1 -> 1.4.0.
Trying to compile with the new versions, I'm now getting multiple cases of this error:
Two classes with the same name but in different packages: x.y.ClassName and x.y.z.ClassName
Koin Annotations generates a function Module.defineClassName() for each of these in the same generated file, leading to the Error "Conflicting overloads: fun Module.defineClassName(): KoinDefinition<*>" when trying to build the project.
Errors in the build:
Generated code that's producing the errors:
Is there any way to work around that? I don't want to rename all those classes just to get our DI library to work.
Expected behavior
I'd expect Koin to allow us to define multiple classes with the same name
Koin project used and used version: koin-core version 4.0.1 koin-annotations version 1.4.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I've just updated our project from Koin 3.5.6 -> 4.0.1, and Koin Annotations 1.3.1 -> 1.4.0.
Trying to compile with the new versions, I'm now getting multiple cases of this error:
Module.defineClassName()
for each of these in the same generated file, leading to the Error "Conflicting overloads: fun Module.defineClassName(): KoinDefinition<*>" when trying to build the project.Errors in the build:
Generated code that's producing the errors:
Is there any way to work around that? I don't want to rename all those classes just to get our DI library to work.
Expected behavior
I'd expect Koin to allow us to define multiple classes with the same name
Koin project used and used version:
koin-core version 4.0.1
koin-annotations version 1.4.0
The text was updated successfully, but these errors were encountered: