diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-10 11:43:00 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-10 11:47:28 -0700 |
commit | f8a4a457cdf2d2ccd69260ce19f2cda0490e73fb (patch) | |
tree | 02b16a7ef89ed575558ae7afb533a7f3446c974f /mutable.mu | |
parent | 11d6098bf71f31941065cbe1b228b3328af8ced0 (diff) | |
download | mu-f8a4a457cdf2d2ccd69260ce19f2cda0490e73fb.tar.gz |
3318
Describe immutability checks in the Readme.
Diffstat (limited to 'mutable.mu')
-rw-r--r-- | mutable.mu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mutable.mu b/mutable.mu new file mode 100644 index 00000000..5de7777e --- /dev/null +++ b/mutable.mu @@ -0,0 +1,13 @@ +# compare immutable-error.mu + +def main [ + local-scope + x:address:number <- new number:type + foo x +] + +def foo x:address:number -> x:address:number [ + local-scope + load-ingredients + *x <- copy 34 +] |