about summary refs log blame commit diff stats
path: root/mutable.mu
blob: 4f190adfedc458d5db1fa729e4a139f1bb86e001 (plain) (tree)
1
2
3
4
5
6
7
8
9



                            
                                  


       
                                        



                  
# compare immutable-error.mu

def main [
  local-scope
  x:address:num <- new number:type
  foo x
]

def foo x:address:num -> x:address:num [
  local-scope
  load-ingredients
  *x <- copy 34
]