-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Relax Trie
variance
#4338
base: next-minor
Are you sure you want to change the base?
Relax Trie
variance
#4338
Conversation
🦋 Changeset detectedLatest commit: a0ca56c The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
fcb62eb
to
8193b8f
Compare
A Trie has setter APIs so you can't relax the variance. If there was a ReadonlyTrie that could be covariant. |
But this is the case with HashSet and HashMap and List, and soundness is ensured by immutability as far as I understand. Trie setters are also immutable. |
5ef8a1d
to
bbe556f
Compare
bbe556f
to
df7f007
Compare
This reverts commit cfeebe2.
I think as long as it is immutable it should work |
df7f007
to
d425963
Compare
Type
Description
Related