Skip to content

[interpreter] Fix deftype closure invariant in validator#2167

Merged
rossberg merged 2 commits into
mainfrom
fix.2166
May 13, 2026
Merged

[interpreter] Fix deftype closure invariant in validator#2167
rossberg merged 2 commits into
mainfrom
fix.2166

Conversation

@rossberg
Copy link
Copy Markdown
Member

Fix #2166.

@raoxiaojia, PTAL.

Comment thread interpreter/valid/valid.ml Outdated
let RecT sts = rt in
let x = Lib.List32.length c.types in
let c' = {c with types = c.types @ roll_deftypes x rt} in
let dt =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Technically dts to match the style of plurality in other places, but it doesn't matter much.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed, fixed.

@raoxiaojia
Copy link
Copy Markdown
Contributor

lgtm!

@rossberg rossberg merged commit 4aaa12c into main May 13, 2026
1 check passed
@rossberg rossberg deleted the fix.2166 branch May 13, 2026 13:09
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.

[interpreter] Bug in subtype matching for types with equal closures after deep IDX substitution

2 participants