about summary refs log tree commit diff stats
path: root/mutable.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-10 11:43:00 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-10 11:47:28 -0700
commitf8a4a457cdf2d2ccd69260ce19f2cda0490e73fb (patch)
tree02b16a7ef89ed575558ae7afb533a7f3446c974f /mutable.mu
parent11d6098bf71f31941065cbe1b228b3328af8ced0 (diff)
downloadmu-f8a4a457cdf2d2ccd69260ce19f2cda0490e73fb.tar.gz
3318
Describe immutability checks in the Readme.
Diffstat (limited to 'mutable.mu')
-rw-r--r--mutable.mu13
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
+]