Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 9, 2025

We map them to fresh caps but their hidden sets should not accept new elements.

We map them to fresh caps but their hidden sets should not accept new elements.
Show the self type binder of a RecType only if the RecType was referred to in
its body. This is needed so that we can add RecTypes to class types without
polluting error messages.
The prefix is mapped as a normal type. It determines whether
the hidden set allows to add new elements. ThisType and NoPrefix
prefixes allow it, other prefixes forbid it.
Have at most one FreshCap for a given prefix and hidden set.
We need to align RecTypes before comparing any wrapped CapturingTypes
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.

1 participant