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

Reject return in pattern guards and if conditions #109

Open
yannbolliger opened this issue Mar 18, 2021 · 0 comments
Open

Reject return in pattern guards and if conditions #109

yannbolliger opened this issue Mar 18, 2021 · 0 comments
Labels
enhancement Improvement to an existing feature extraction Feature or bug with the extraction phase

Comments

@yannbolliger
Copy link
Collaborator

Currently (#108), there are two negative test cases for these two things. But the test cases don't "fail" they just let
Stainless crash. We want to disallow the two cases already in the Rust frontend and hence fail_extraction
instead of crash_verification.

(At the same time, one could again remove the crash_verification flag, as it's a bit ugly to let the backend crash.)

@yannbolliger yannbolliger added enhancement Improvement to an existing feature extraction Feature or bug with the extraction phase labels Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature extraction Feature or bug with the extraction phase
Projects
None yet
Development

No branches or pull requests

1 participant