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: Always parse parentheses for predicates #5069

Merged
merged 11 commits into from
Feb 20, 2024

Conversation

RustanLeino
Copy link
Collaborator

A loooong time ago, Dafny supported predicate definitions without parentheses. Apparently, the parser still allowed that, which is wrong. This PR changes the parser to make sure that a predicate definition always includes parentheses.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@RustanLeino RustanLeino marked this pull request as ready for review February 8, 2024 06:30
@RustanLeino RustanLeino enabled auto-merge (squash) February 8, 2024 06:30
keyboardDrummer
keyboardDrummer previously approved these changes Feb 8, 2024
@keyboardDrummer
Copy link
Member

Please fix the failing test: AllRelevantSymbolKindsDetected

@RustanLeino RustanLeino merged commit e49dec6 into dafny-lang:master Feb 20, 2024
20 checks passed
@RustanLeino RustanLeino deleted the fix-predicate-parens branch February 20, 2024 17:59
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.

None yet

2 participants