-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow Core 2 causes undeclared type variable: A when using NonEmptyList #3557
Comments
NonEmptyList v1.2.4 is a normal class. |
I believe a similar issue has been reported, and a hot fix either has been released or will be released soon. The issue is that the type parameter of Nel needs to have the same name as the type parameter of List, so the fix does precisely that. I'll try to find the related issue |
@kyay10 if you are referring to: #3549, I've tried with version 2.0.1-apha.1 and now the error is:
From: |
Thanks for the reproducer. It turns out that this is a reported bug in the Kotlin compiler. It seems that if you use |
Hi,
when I try to inject with Hilt a component returning
NonEmptyList
, such as:I'm getting
I've created a reproducible issue in this repo: https://github.com/dcampogiani/Arrow-Core-2-NonEmptyList-Issue
Dependencies:
Everything works fine if I use arrowCore=1.2.4, or replace NonEmptyList with List
The text was updated successfully, but these errors were encountered: