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

Adding errorids for refinement errors #4091

Merged
merged 40 commits into from
May 31, 2023

Conversation

davidcok
Copy link
Collaborator

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

docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved

The declarations in a refining module must have the same type as in the base module. In fact, to enable easier checking that the type
has not changed, the type must be expressed in the same syntactic form in the two declarations. It is not permitted to use a type in one place and
an equivalent type synonym in the other.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
an equivalent type synonym in the other.
an equivalent type synonym in another.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded.

```

A refined declaration of a `const` may add an initializer, but it cannot replace an initializer declared in the base,
even if it is syntactically the same value.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an example that "is syntactically the same value"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
docs/HowToFAQ/Errors-Refinement.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@stefan-aws stefan-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I only found a few typos.

stefan-aws
stefan-aws previously approved these changes May 30, 2023
@davidcok davidcok merged commit e897d86 into dafny-lang:master May 31, 2023
19 checks passed
@davidcok davidcok deleted the cok-refinement-errors branch May 31, 2023 13:36
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