Skip to content
New issue

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

[BUG] Parser accepts single main function without body #3280

Open
soraros opened this issue Jul 21, 2024 · 0 comments
Open

[BUG] Parser accepts single main function without body #3280

soraros opened this issue Jul 21, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@soraros
Copy link
Contributor

soraros commented Jul 21, 2024

Bug description

As title. Equivalent Python code throws IndentationError.

Steps to reproduce

This code crashes the formatter as well.

def main():

System information

Mojo 2024.7.2105 (50593909)
@soraros soraros added bug Something isn't working mojo-repo Tag all issues with this label labels Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant