11 lines
171 B
Text
11 lines
171 B
Text
def incr(field a) -> field {
|
|
a = a + 1;
|
|
return a;
|
|
}
|
|
|
|
def main() {
|
|
field x = 1;
|
|
field res = incr(x);
|
|
assert(x == 1); // x has not changed
|
|
return;
|
|
}
|