Skip to content
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

Specify type variance for compose and plus methods across the lenses #2415

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

magneticflux-
Copy link
Contributor

These all must be specified, otherwise the compiler is unable to determine which function to call when there are multiple (e.g. when using Getter compose Getter to create a Getter instead of a Fold).

Closes #2414

These all must be specified, otherwise the compiler is unable to determine which function to call when there are multiple (e.g. when using `Getter compose Getter` to create a `Getter` instead of a `Fold`).
@magneticflux- magneticflux- force-pushed the composition-type-variance branch from df8d61d to 8186051 Compare June 5, 2021 10:06
@magneticflux-
Copy link
Contributor Author

I was able to build the documentation on my own machine and nothing in the docs was changed by this PR, so this seems like a spurious failure.

@nomisRev
Copy link
Member

nomisRev commented Jun 6, 2021

There seems to be something randomly failing after bumping to Kotlin 1.5.10 at the start-up of the documentation checking tools. Re-running the CI task seems to work...

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!! Thanks @magneticflux- 👏 👏

@nomisRev
Copy link
Member

nomisRev commented Jun 8, 2021

Thanks & congrats for your first contribution @magneticflux- 🥳

@nomisRev nomisRev merged commit a1a75c2 into arrow-kt:main Jun 8, 2021
@magneticflux- magneticflux- deleted the composition-type-variance branch June 8, 2021 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

["Request"] Variance for generic types in compositions
3 participants