Upgrade reads and modifies error messages #4485
Labels
area: error-reporting
Clarity of the error reporting
part: documentation
Dafny's reference manual, tutorial, and other materials
What change in documentation do you suggest?
Currently, reads errors look like this:
Error: insufficient reads clause to invoke function
which is very hard to decipher, has no actionable item, does not seem linked to verification.
I think an error message like this would help disambiguate what's going on:
Inside methods
Error: could not prove that the function's reads consists only of fresh objects or object/fields that the enclosing method declares to read
Inside functions
Error: could not prove that the function's reads consists only of object/fields that the enclosing function declares to read
The text was updated successfully, but these errors were encountered: