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

Fixing the escape check to provide better errors #3105

Merged
merged 8 commits into from
Nov 19, 2023

Conversation

mtzguido
Copy link
Member

This fixes #3102, which I should have realized was a variable escaping in the type of the letbinding. But, the error message was bad since it was raising an internal failure instead of properly reporting the escape. A patch in this PR fixes it (ae3e0cd), and there's some other misc stuff too.

Otherwise, the call to try_teq is wrong as one of the
terms cannot be typed in this environment. Also, wrap the whole
thing in a try/catch, and if something fails we can just report
that the variable escapes.

Fixes FStarLang#3102.
@mtzguido
Copy link
Member Author

Got an everest green locally, merging.

@mtzguido mtzguido merged commit 0b0b279 into FStarLang:master Nov 19, 2023
2 checks passed
@mtzguido mtzguido deleted the 3102 branch November 19, 2023 00:19
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.

Stange failure with unbound variable
1 participant