-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.LanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageLanguageProposalIssues describing a requested change to the Go language specification.Issues describing a requested change to the Go language specification.Proposal
Milestone
Description
Per the spec:
In an alias declaration the given type cannot be a type parameter.
This matches the respective restriction we have for type definitions.
That said, we have quite a few (type checker) tests that declare local aliases for function type parameters.
This restriction should probably only apply to package-level alias declaration. But even that is not clear.
Needs to be investigated.
See also #75884.
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.LanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageLanguageProposalIssues describing a requested change to the Go language specification.Issues describing a requested change to the Go language specification.Proposal