This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# probe: can a variable be read after an if that gives it a value on one path only? (no, even when the path is taken at run time)
|
||||
# expect: compile-error
|
||||
def main():
|
||||
var n = 3
|
||||
var w: Int
|
||||
if n > 1:
|
||||
w = 1
|
||||
print(w)
|
||||
Reference in new issue
Block a user