Skip to content

x/website: the EBNF def of FunctionType.Result is wrong #53746

@fumeboy

Description

@fumeboy

What is the URL of the page with the issue?

https://go.dev/ref/spec#Function_types

the definition in doc is

FunctionType = "func" Signature .
Signature = Parameters [ Result ] .
Result = Parameters | Type .
Parameters = "(" [ ParameterList [ "," ] ] ")" .
ParameterList = ParameterDecl { "," ParameterDecl } .
ParameterDecl = [ IdentifierList ] [ "..." ] Type .

the mistack is

the Result shouldnt be produce by = Parameters. the Parameters support (... T) but you couldnt write func signature like func () (...T)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.website

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions