8 lines
200 B
Mojo
8 lines
200 B
Mojo
# probe: is a var declared inside an if still there after it? (no: the name ends with the block)
|
|
# expect: compile-error
|
|
def main():
|
|
var n = 3
|
|
if n > 0:
|
|
var inner = 5
|
|
print(inner)
|