mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:06:21 +01:00
Revert "Remove : from vars in exec semantics (#504)"
This reverts commit 05663633d3.
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@
|
||||
// Test that assignment performs a copy and does not create an alias.
|
||||
|
||||
fn main() -> Int {
|
||||
var Int x = 0;
|
||||
var Int y = x;
|
||||
var Int: x = 0;
|
||||
var Int: y = x;
|
||||
x = 1;
|
||||
return y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user