f8a4a457 ^
760f683f ^
4a48bedc ^
1 2 3 4
5
6 7 8
9
10
11
12 13
# compare mutable.mu def main [ local-scope x:&:num <- new number:type foo x ] def foo x:&:num [ local-scope load-inputs *x <- copy 34 # will cause an error because x is immutable in this function ]