Skip to content

Add variance annotations - #28

Merged
ericeil merged 2 commits into
Certora:mainfrom
ericeil:variance
Feb 27, 2026
Merged

ericeil merged 2 commits into
Certora:mainfrom
ericeil:variance

Conversation

@ericeil

@ericeil ericeil commented Feb 26, 2026

Copy link
Copy Markdown
Collaborator

Adds variance annotations consistent with the annotations on the base PersistentMap and PersistentList interfaces.

The @UnsafeVariance annotations are safe because these are all immutable data structures; we can only produce a new TreapMap/TreapList of the new type.

The `@UnsafeVariance` annotations are safe because these are all immutable data structures; we can only produce a new `TreapMap`/`TreapList` of the new type.
@ericeil
ericeil requested a review from jtoman February 26, 2026 23:54

@jtoman jtoman left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

worth leaving a comment about why the variance annotations are fine

@ericeil
ericeil enabled auto-merge (squash) February 27, 2026 00:38
@ericeil
ericeil merged commit ee8c94a into Certora:main Feb 27, 2026
1 check passed
@ericeil
ericeil deleted the variance branch February 27, 2026 00:40
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.

2 participants