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

Specify and check that the @main function can't have a return type #292

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

sampsyo
Copy link
Owner

@sampsyo sampsyo commented Sep 8, 2023

As discussed in #281 (comment) and previously in #91, it seems like @main shouldn't return anything. (Maybe we will change this in the future—e.g., maybe it should be able to return an OS status code—but we can relax this requirement if we ever want to do that.)

This PR adds this requirement to the docs and adds the obvious check to brilck. The CI will fail on this PR until the benchmark from #281 is fixed to obey the new rule.

@sampsyo
Copy link
Owner Author

sampsyo commented Sep 8, 2023

All set now, following #293!

@sampsyo sampsyo merged commit d919e9a into main Sep 8, 2023
5 checks passed
@sampsyo sampsyo deleted the main-spec branch September 8, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant