// Concrete interface with a generic-instantiated message field. // // The call site only references the concrete outer type (`Container`), so // the analyzer must independently: // 1) resolve the field's typeName to the *mangled* form (`Wrapper__uint_32`) // so it matches what monomorphization produces, // 2) enqueue `Wrapper` for monomorphization itself, since the // call-site-driven queue only sees `Container`. // // Without both, wire-type resolution silently leaves the field at the // `WireType.Varint` placeholder and codegen emits a wrong wire format. interface Wrapper { value: pb<1, T>; } interface Container { wrapped: pb<5, Wrapper>; } const data = protobuf_encode({ wrapped: { value: 42 } }); const decoded = protobuf_decode(data); export { };