You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gospel check should indeed at least accept this specification for the run function.
An other example is the sleep function, that does not diverge but returns unit without modifying anything (that we can express in the specification).
I'm thinking that having the absence of modifies clause for unit-returning function as an error may be a bit too strong. A warning may be more appropriate.
shym
added a commit
to shym/gospel
that referenced
this issue
Oct 4, 2023
Currently
gospel check
rejects:with:
We could consider that:
modifies ()
, or something similar, is the canonical annotation for such cases,diverges
ormodifies
would be required forunit
-returning functions.The text was updated successfully, but these errors were encountered: