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
analyzer doesn't warn about missing main method #20030
Comments
Removed Priority-Unassigned label. |
I don't understand why any of these should produce an error/warning. Could you please point me to the section(s) in the specification where they are defined? Set owner to @peter-ahe-google. |
Marked this as being blocked by #21521. |
The part of the spec mentioning "main" is the Script section.
The requirement that "main" is a top-level function disallows things like: (The VM allows all three examples). |
"- and, implied by the way it's called, a runtime error if "main" requires I'm not sure how to reach that conclusion from the actual text in the specification. |
Correct. But what distinguishes a script from a library? In other words, how should the analyzer decide that a file is a script as well as a library and that this requirement therefore applies? |
Unless someone wants to continue the discussion, I'm closing this issue. Added AsDesigned label. |
The following language tests fail:
main_not_a_function_test/01
main_test/03
no_main_test/01
The text was updated successfully, but these errors were encountered: