Open
Description
Hi,
when I try to inject with Hilt a component returning NonEmptyList
, such as:
internal fun interface StateBuilder {
fun build(): NonEmptyList<String>
}
I'm getting
bad class file: /Users/danielecampogiani/Developing/android/arrow-2-empty-list-issue/app/build/tmp/kotlin-classes/debug/com/danielecampogiani/StateBuilder.class
undeclared type variable: A
Please remove or make sure it appears in the correct subdirectory of the classpath.
I've created a reproducible issue in this repo: https://github.com/dcampogiani/Arrow-Core-2-NonEmptyList-Issue
Dependencies:
- arrowCore = "2.0.0"
- hilt = "2.54"
- kotlin = "2.1.0"
Everything works fine if I use arrowCore=1.2.4, or replace NonEmptyList with List
Metadata
Metadata
Assignees
Labels
No labels