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

Improve error messages about variance and cardinality preservation #2774

Merged
merged 4 commits into from
Sep 20, 2022

Conversation

RustanLeino
Copy link
Collaborator

  • Fixes hint to suggest both - and ! instead of just ! when a type parameter is used in a negative position
  • Improves an error message by removing the words "strict positivity", which are confusing and not necessary (see also http://leino.science/papers/krml280.html)

Fixes #2659

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 September 20, 2022 21:04
@RustanLeino RustanLeino enabled auto-merge (squash) September 20, 2022 21:05
@RustanLeino RustanLeino merged commit 21dfe47 into dafny-lang:master Sep 20, 2022
@RustanLeino RustanLeino deleted the issue-2659 branch September 20, 2022 22:06
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.

Dafny suggests making a type parameter invariant instead of contravariant
2 participants