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

Don't complain about determinism for traits #5711

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

atomb
Copy link
Member

@atomb atomb commented Aug 19, 2024

Description

After #5632, Dafny started complaining about traits lacking constructors (which they can't have) when --enforce-determinism was enabled. This changes back to the previous behavior of warning only about classes without constructors.

How has this been tested?

Updated dafny0/ForbidNondeterminismResolve.dfy to include a trait declaration.

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

@atomb atomb enabled auto-merge (squash) August 19, 2024 19:51
@atomb atomb merged commit ebbec43 into dafny-lang:master Aug 19, 2024
22 checks passed
dnezam pushed a commit to dnezam/dafny that referenced this pull request Sep 21, 2024
### Description

After dafny-lang#5632, Dafny started complaining about traits lacking constructors
(which they can't have) when `--enforce-determinism` was enabled. This
changes back to the previous behavior of warning only about classes
without constructors.

### How has this been tested?

Updated `dafny0/ForbidNondeterminismResolve.dfy` to include a trait
declaration.

By submitting this pull request, I confirm that my contribution
is made under the terms of the MIT license.
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