diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 12:55:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 12:55:10 -0700 |
commit | 760f683f2755038a1b0c16522f5001b889096aa5 (patch) | |
tree | e07afd384d45be93d81fb4c1788b332fe05799a0 /immutable_error.mu | |
parent | 80df524b566a708551f752ce8b82e21738591651 (diff) | |
download | mu-760f683f2755038a1b0c16522f5001b889096aa5.tar.gz |
3389
Diffstat (limited to 'immutable_error.mu')
-rw-r--r-- | immutable_error.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/immutable_error.mu b/immutable_error.mu index d6fbb639..2d25d56e 100644 --- a/immutable_error.mu +++ b/immutable_error.mu @@ -2,11 +2,11 @@ def main [ local-scope - x:address:num <- new number:type + x:&:num <- new number:type foo x ] -def foo x:address:num [ +def foo x:&:num [ local-scope load-ingredients *x <- copy 34 # will cause an error because x is immutable in this function |