Open MikeInnes opened 1 month ago
Mojo 24.4.0 fails to run the following code, instead producing a compiler error.
def func(i): if i == 1: return [] else: return [func(i-1)] def main(): print(func(1))
Paste the code above into test.mojo and run with mojo run test.mojo.
test.mojo
mojo run test.mojo
No response
reproduces with mojo 2024.9.1605 (900128df)
not a regression from 24.5
Bug description
Mojo 24.4.0 fails to run the following code, instead producing a compiler error.
Steps to reproduce
Paste the code above into
test.mojo
and run withmojo run test.mojo
.System information
No response