Skip to content

go/types: API allows instantiation of instantiated type #72978

@griesemer

Description

@griesemer

Consider: https://go.dev/play/p/SiV_jaPuzNr
Re-Instantiation of the instantiated type of x in the code works unexpectedly.
Re-Instantiation of the instantiated type of f in the code fails as expected.

This seems inconsistent. Either we permit both or neither.

@findleyr for input

Metadata

Metadata

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions