mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
The code tried to be too smart and skipped the equality (returning true) if the payload type was zero-sized. This optimization is completely wrong when the union payload is a metatype! Fixes #7047