Skip to content

fix: Always parse parentheses for predicates - #5069

Merged
RustanLeino merged 11 commits into
dafny-lang:masterfrom
RustanLeino:fix-predicate-parens
Feb 20, 2024
Merged

RustanLeino merged 11 commits into
dafny-lang:masterfrom
RustanLeino:fix-predicate-parens

Conversation

@RustanLeino

Copy link
Copy Markdown
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
Copy Markdown
Member

Please fix the failing test: AllRelevantSymbolKindsDetected

@RustanLeino
RustanLeino merged commit e49dec6 into dafny-lang:master Feb 20, 2024
@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.

2 participants