Skip to content

Conversation

@Dargones
Copy link
Owner

@Dargones Dargones commented Feb 1, 2022

No description provided.

Dargones pushed a commit that referenced this pull request Sep 11, 2025
### What was changed?
Change the error reporting related to refinement, so it behaves more
like the existing reporting, and the IDE and CLI are now consistent in
how they report refinement related diagnostics. In particular, the IDE
can now jump to both the refining and refined symbol.

Change #1: instead of `[<RefiningModuleName>]`, use a related location
to report refinement related issues.
```
- Termination.dfy[TerminationRefinement1](441,5): Error: decreases clause might not decrease
+ Termination.dfy(441,5): Error: decreases clause might not decrease
+Termination.dfy(446,7): Related location: refining module
```

Change #2: slighly changed the wording when overriding skeleton
propositions:
```
Refinement.dfy(198,6): Error: assertion might not hold
-Refinement.dfy[IncorrectConcrete](122,18): Related location: this proposition could not be proved
+Refinement.dfy(122,18): Related location: refined proposition
```

### How has this been tested?
- Updated existing tests

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
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