about summary refs log tree commit diff stats
path: root/mutable.mu
diff options
context:
space:
mode:
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
+]