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
The RESULT symbol is defined for functions and operations that return a value. But not all operations return a value - some are void. However, the type checker defines a "void" valued RESULT symbol in this case. There should be no such symbol. For example:
operations
op: () ==> ()
op() == skip
post RESULT > 0; -- Error: Left hand of > is not ordered. Actual: ()
This ought to say that there is no symbol RESULT in scope.
The text was updated successfully, but these errors were encountered:
The RESULT symbol is defined for functions and operations that return a value. But not all operations return a value - some are void. However, the type checker defines a "void" valued RESULT symbol in this case. There should be no such symbol. For example:
This ought to say that there is no symbol RESULT in scope.
The text was updated successfully, but these errors were encountered: