Appearance
A type's decorator receives the type, and a generic type isn't one until it is instantiated. Decorate an alias naming an instantiation.
@reg type Box[T any] struct{ v T }
type Box[T any] struct{ v T } @reg type IntBox = Box[int]