This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# probe: can a variable with no value yet be passed to a mut parameter? (no: "use of uninitialized value")
|
||||
# expect: compile-error
|
||||
def set_it(mut x: Int):
|
||||
x = 5
|
||||
|
||||
|
||||
def main():
|
||||
var x: Int
|
||||
set_it(x)
|
||||
print(x)
|
||||
Reference in new issue
Block a user