-
Notifications
You must be signed in to change notification settings - Fork 43
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
Check that definitions from modes respect their scope #62
Comments
There's currently no way of differentiating |
Alternatively, we could use a
WDYT? @shonfeder @konnov
|
I've created a milestone to track progress on the effect system: https://github.com/informalsystems/tnt/milestone/3 When that's finished, we should decide on how to use modes to restrict an expression's effect and add some checks. |
Upon further understanding of operator's effects, we realize almost all operators should take parameters with a
Even tho it represents a pure function, it can propagate reads:
So perhaps the desired definition for the |
#187 hopefully unblocks this issue |
TNT has modes that define what expressions can be used inside a definition. We are currently ignoring this and everything is allowed in any mode. We should make a pass after name resolution that checks semantically if definitions of a mode contain only expressions allowed in that mode.
The text was updated successfully, but these errors were encountered: