Skip to content
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

Fix bug in creation of fresh type variables #435

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

mrjazzybread
Copy link
Contributor

Happy Holidays!

I figured out the problem with the bug from #431: when a fresh type
variable is created, it is "logged" into a hash table, using the
ty_of_dty function, that maps it into another type variable with a
unique name. However, there was one instance where we were creating
type variables without adding them to the hash table which was causing
problems when we ran the ty_match function (which I believe exists
only for integrity checking). This PR should fix this issue.

@n-osborne
Copy link
Contributor

Nice catch!

Maybe it could be an idea to add a test showing it works (so that we don't break it again later).

As a side not, the changelog check in the CI seems broken as you didn't add an entry in it but the check passes...

Copy link
Contributor

@n-osborne n-osborne left a comment

Choose a reason for hiding this comment

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

Excellent! Thanks!

This is merely lacking an entry in the changelog to be merged.

@mrjazzybread
Copy link
Contributor Author

Done!

@n-osborne
Copy link
Contributor

Thanks. Merging now.

@n-osborne n-osborne merged commit 46d1459 into ocaml-gospel:main Jan 20, 2025
3 checks passed
n-osborne added a commit to n-osborne/gospel that referenced this pull request Jan 20, 2025
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