Skip to content

Specialise: in StmtExp, ground all type vars to ()#372

Merged
mbenke merged 1 commit into
mainfrom
spec-stmtexp
May 8, 2026
Merged

Specialise: in StmtExp, ground all type vars to ()#372
mbenke merged 1 commit into
mainfrom
spec-stmtexp

Conversation

@mbenke

@mbenke mbenke commented May 7, 2026

Copy link
Copy Markdown
Collaborator

If we have an statement consisting of an expression, such as revert(0,0); the value of the expression is dropped anyway, so it should be safe to ground all variables in its type to ().

While this does not solve the problem of unresolved variables at specialisation time, at least it should solve problems with revert and hence require

@mbenke mbenke requested review from d-xo and rodrigogribeiro May 7, 2026 07:07

@rodrigogribeiro rodrigogribeiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@mbenke mbenke merged commit cb0c0e4 into main May 8, 2026
6 of 7 checks passed
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