We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code will result in no output with mojo file.mojo
mojo file.mojo
Run mojo file.mojo where the file contains:
fn main(): var i = 0 while True: for j in range(i): print_no_newline(j, " ") print() if i > 10: break i += 1
Ubuntu 22.04 in a devcontainer on an Intel MacBook pro.
The text was updated successfully, but these errors were encountered:
Also
fn main(): var i = 0 while i < 10: for j in range(i): print_no_newline(j, " ") print() i += 1
prints a few new lines but does not print the value of j
j
This
fn main(): for i in range(10): for j in range(i): print_no_newline(j, " ") print()
works fine though
Sorry, something went wrong.
Reopen to wait for another PR to merge.
weiweichen
No branches or pull requests
Bug description
The following code will result in no output with
mojo file.mojo
Steps to reproduce
Run
mojo file.mojo
where the file contains:System information
Ubuntu 22.04 in a devcontainer on an Intel MacBook pro.
The text was updated successfully, but these errors were encountered: