about summary refs log tree commit diff stats
path: root/mutable.mu
blob: 5de7777e22727915460a617eeeccf4e1eb4e9c71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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
]