Skip to content

Dealias less in OrderingConstraint.replace and AvoidMap #14232

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

Closed
wants to merge 1 commit into from

Conversation

joroKr21
Copy link
Member

@joroKr21 joroKr21 commented Jan 8, 2022

Basically if the transformation doesn't apply to the dealias type,
then return the original type instead of the dealiased one.

In general it's reduce dealiasing to a minimum when typing,
because it can affect type unification as shown in the tests.

Unfortunately this doesn't handle the case of a singleton type alias,
because widenSingletons also dealiases and the same fix doesn't work.

@joroKr21
Copy link
Member Author

I just opened to run the CI but I didn't find time to check the failures yet

Basically if the transformation doesn't apply to the dealias type,
then return the original type instead of the dealiased one.

In general it's reduce dealiasing to a minimum when typing,
because it can affect type unification as shown in the tests.

Unfortunately this doesn't handle the case of a singleton type alias,
because `widenSingletons` also dealiases and the same fix doesn't work.
@ckipp01
Copy link
Member

ckipp01 commented May 10, 2023

Hey @joroKr21, just wanted to check in. Do you plan on returning back to this?

@joroKr21
Copy link
Member Author

Maybe. But for now I will close it because I have no time.

@joroKr21 joroKr21 closed this May 10, 2023
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.

no implicit argument was found for implicit parameter
2 participants