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

For loops #1264

Merged
merged 35 commits into from
Jul 2, 2021
Merged

For loops #1264

merged 35 commits into from
Jul 2, 2021

Conversation

RustanLeino
Copy link
Collaborator

This PR introduces for loops in the Dafny language. See docs/DafnyRef/Statements.md (section 19.13) for a description and see dafny-lang/rfcs#4 for a discussion.

Closes dafny-lang/rfcs#4

A BoundVar is immutable, and is what is used in the similar `forall` statement.
Previously, this generated an infinite loop.
# Conflicts:
#	Source/Dafny/Compiler-java.cs
@RustanLeino RustanLeino merged commit 12e819a into dafny-lang:master Jul 2, 2021
@RustanLeino RustanLeino deleted the for-loops branch July 2, 2021 22: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

1 participant