go/internal/gcimporter: importer needs to skip types with implicit type parameters #55110
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
https://go.dev/play/p/OOzj1_gdApu?v=gotip
The issue is the local type X is effectively promoted to a global type, but then given additional implicit type parameters. This type definition is never actually needed by the go/internal/gcimporter (because it doesn't read function bodies). However, the go/types API doesn't support lazy object importing, so go/internal/gcimporter eagerly imports everything.
We just need to skip over local type definitions. These can be distinguished because they have a
·N
vargen suffix in their name.The text was updated successfully, but these errors were encountered: