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

Fix 1177 where Focus could not operate on type aliases #1178

Merged
merged 5 commits into from
Jul 20, 2021

Conversation

kenbot
Copy link
Collaborator

@kenbot kenbot commented Jul 17, 2021

Fixes #1177, where Focus could not operate on type aliases of parameterised types. The solution is just to call dealias on the type, which means that internally it gets normalised to the concrete underlying type, so all the usual code that looks for copy methods works in the usual way.

@kenbot kenbot changed the title Fix1177 Fix 1177 where Focus could not operate on type aliases Jul 17, 2021
@kenbot kenbot requested a review from julien-truffaut July 17, 2021 14:08
@julien-truffaut
Copy link
Member

LGTM!

@julien-truffaut julien-truffaut merged commit 4d0c118 into optics-dev:master Jul 20, 2021
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.

Type aliases and Focus are not friends in scala 3
2 participants