-
Notifications
You must be signed in to change notification settings - Fork 453
Arrow Core 2 causes undeclared type variable: A when using NonEmptyList #3557
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
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 |
Are there any work arounds for this, or do we have to sit tight until the Kotlin compiler bug is fixed? |
Unfortunately the only option until the fix is released is to use |
Thanks for the response @serras, I'll give that a go 😄 |
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: