Baseline: tree as shared
This commit is contained in:
commit
659c03bbf8
1471 files changed
+990535
No files matched your search
@@ -0,0 +1,9 @@
|
||||
# probe: a mut argument changes the caller's variable
|
||||
def bump(mut x: Int):
|
||||
x += 1
|
||||
|
||||
|
||||
def main():
|
||||
var n = 1
|
||||
bump(n)
|
||||
print(n)
|
||||
Reference in new issue
Block a user