mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +01:00
Revert "Remove : from vars in exec semantics (#504)"
This reverts commit 05663633d3.
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
// Test access to block-scoped variables upon resuming a continuation.
|
||||
|
||||
fn main() -> Int {
|
||||
var Int y = 0;
|
||||
var Int: y = 0;
|
||||
__continuation k {
|
||||
var Int x = 0;
|
||||
var Int: x = 0;
|
||||
x = x + 1;
|
||||
__await;
|
||||
x = x + 2;
|
||||
|
||||
Reference in New Issue
Block a user