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









                            
fn main -> result/ebx: int {
  result <- foo
}

fn foo -> result/ebx: int {
  var n: int
  copy-to n 3
  increment n
  result <- copy n
}