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 type checker had a fault where infinite while loops were not treated as such. For example, the following operation:
op: set of Event ==> Event
op(events) ==
while true do
for all e in set events do
if e.isSignalled()
then return e;
This raised an error, saying the operation returns "() | Event", since the loop was considered to terminate. The fix looks explicitly for "while true" loops like this, and so this now returns just "Event", as the signature requires.
The text was updated successfully, but these errors were encountered:
The type checker had a fault where infinite while loops were not treated as such. For example, the following operation:
This raised an error, saying the operation returns "() | Event", since the loop was considered to terminate. The fix looks explicitly for "while true" loops like this, and so this now returns just "Event", as the signature requires.
The text was updated successfully, but these errors were encountered: