mirror of
https://github.com/ziglang/zig.git
synced 2026-03-11 21:59:52 +00:00
When formatting a pointer to user type, currently it needs to be dereferenced first, then call `formatType` on the child type. Fix the problem by checking for "format" function on not only the type itself, but also the struct it points to. Add hasMethod to std.meta.