Open
Description
Came across this while testing basic loops in lpython.
from ltypes import i32
def f():
i: i32
for i in range(0,5,1):
print(i)
else:
print(100)
f()
(lp) C:\Users\kunni\lpython>python try.py
0
1
2
3
4
100 # Should be printed because there is no break statement in loop
(lp) C:\Users\kunni\lpython>src\bin\lpython try.py
Creating library try.lib and object try.exp
0
1
2
3
4
Metadata
Metadata
Assignees
Labels
No labels