// Generic template with a generic-instantiated message field. // // The outer template's type param (`U`) shows up *inside* an inner generic // instantiation (`Wrapper`). When the outer is monomorphized at the call // site (`Outer`), the inner instantiation must be re-instantiated // with the substitution (becoming `Wrapper`) and put into the // registry under its mangled name `Wrapper__uint_32`. // // Without the fix, the field's `rawTypeName` was `'Wrapper__U'` and the // substituted-mono never produced `Wrapper__uint_32`, leaving the field's // wire-type unresolved. interface Wrapper { value: pb<1, T>; } interface Outer { wrapped: pb<5, Wrapper>; } const data = protobuf_encode>({ wrapped: { value: 42 } }); const decoded = protobuf_decode>(data); export { };