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



                            
                            


       
                            
             
             

               
# compare immutable-error.mu

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

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