You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
griesemer
changed the title
spec: alias declarations should not permit init,main as alias names
spec: alias declarations should not permit "init" as alias name
Oct 27, 2016
griesemer
changed the title
spec: alias declarations should not permit "init" as alias name
cmd/compile: alias declarations should not permit "init" as alias name
Oct 27, 2016
The spec already categorically disallows the use of "init" except for function declarations. We only need to follow this rule in the compiler.
There's nothing special about "main": The spec permits top-level variables, functions, types, constants, and packages with name "main". Only the linker complains if there's a missing main.main.
Tracking issue.
Compiler needs to be updated as well.
The text was updated successfully, but these errors were encountered: