8000 Arrow Core 2 causes undeclared type variable: A when using NonEmptyList · Issue #3557 · arrow-kt/arrow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Arrow Core 2 causes undeclared type variable: A when using NonEmptyList #3557
Open
@dcampogiani

Description

@dcampogiani

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

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

      0