Files
garble/testdata/script
Golo Roden cdc4b23ac5 fix fieldToStruct for generics instantiated across package boundaries (#1028)
When compiling a package that instantiates a generic type from another
package, info.Types only contains the instantiated *types.Named. The
*types.Struct case in recordFieldToStruct returns early on instantiated
structs (field != field.Origin()), so the origin struct was never
recorded in fieldToStruct. At rewrite time, looking up the origin field
then failed with "could not find struct for field X".

Fix by also recursing into typ.Origin() for instantiated named types,
so the uninstantiated struct is visited and its fields are recorded.

Fixes #1027.
2026-04-16 00:03:37 +01:00
..
2025-06-15 17:25:20 +01:00
2025-06-15 17:25:20 +01:00
2026-03-15 23:36:56 +01:00
2025-06-15 17:25:20 +01:00
2026-04-13 08:05:06 +01:00
2025-06-15 17:25:20 +01:00