Skip to content

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Oct 5, 2020

@johnniwinther just noted that the wording about errors on main introduced by #1146 needs to be clarified: It is not the intention that main can be a getter (and the old text says so explicitly in commentary), but the word function in the spec refers to "functions" (with a <formalParameterPart>) as well as setters, getters, and constructors.

In the context we already know that main is a top-level declaration, so it can't be a constructor. It can't be a setter because a setter name ends in =. So we just need to specify that it can't be a getter. This PR does that.

@eernstg eernstg requested a review from lrhn October 5, 2020 08:33
@eernstg eernstg merged commit 32d14f0 into master Oct 9, 2020
@eernstg eernstg deleted the spec_clarify_main_getter_oct20 branch October 9, 2020 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants