You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so types.Typ[types.Byte] actually evaluates to the *types.Basic representing the universal uint8 type rather than for the desired universal byte type. uint8 and byte are aliases and generally treated as identical, but they still have distinct *types.Basic representations (e.g., so they can each be printed appropriately). Thus gccgoBuiltinBYTE should actually map to something like types.UniverseByte or types.Universe.Lookup("byte").Type().
Similarly, gccgoBuiltinRUNE should map to either types.UniverseRune or types.Universe.Lookup("rune").Type().
The text was updated successfully, but these errors were encountered:
In
go/internal/gccgoimporter
'slookupBuiltinType
function, there are these lines:However, in
go/types
,Byte
andRune
are defined as:so
types.Typ[types.Byte]
actually evaluates to the*types.Basic
representing the universaluint8
type rather than for the desired universalbyte
type.uint8
andbyte
are aliases and generally treated as identical, but they still have distinct*types.Basic
representations (e.g., so they can each be printed appropriately). ThusgccgoBuiltinBYTE
should actually map to something liketypes.UniverseByte
ortypes.Universe.Lookup("byte").Type()
.Similarly,
gccgoBuiltinRUNE
should map to eithertypes.UniverseRune
ortypes.Universe.Lookup("rune").Type()
.The text was updated successfully, but these errors were encountered: