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
{{ message }}
Repository navigation
Commit 6a562cb
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -61,6 +61,12 @@ socket.sendUrgentData(1); // State Refinement Error
61
61
socket.close();
62
62
```
63
63
64
+
A state set can be given a `name`, and a state is then written as a value of its set, `connection(this) == bound`. The shorter form `bound(this)` means the same and is also accepted. A class can have several state sets; a method's `to` keeps unchanged the sets it does not mention. Error messages show the states of named sets in the first form, so they say which set is in which state:
65
+
66
+
```
67
+
State Refinement Error: found connection(socket) == bound but expected connection(socket) == connected
68
+
```
69
+
64
70
Lambda bodies are checked separately from the code that creates them. Creating a lambda does not apply its state
65
71
transitions to captured objects. While checking the body, LiquidJava keeps declared refinements but forgets the current
66
72
state of mutable captures, since that state may change before invocation. Callback execution summaries are not supported:
0 commit comments