Files
pplus-library/mojo/probes/var-block-scope.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

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)