Revert "Remove : from vars in exec semantics (#504)"

This reverts commit 05663633d3.
This commit is contained in:
Richard Smith
2021-06-02 11:33:50 -07:00
parent c903eb3133
commit da403db9ff
61 changed files with 136 additions and 144 deletions
@@ -6,18 +6,18 @@
// on the stack such as the variable `x`. In this example the copy
// happens after the variable `x` is created.
var Int y = 0;
var Int: y = 0;
fn main() -> Int {
__continuation k1 {
var Int x = 0;
var Int: x = 0;
x = x + 1;
__await;
x = x + 2;
y = x;
}
__run k1;
var __Continuation k2 = k1;
var __Continuation: k2 = k1;
__run k2;
return y;
}