mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
CBE: handle returning undefined for ErrorUnion
Just like for Struct in 8238d4b335, in the
case of ErrorUnion struct we need to return a compound literal "(T){...}"
instead of just "{}", which is invalid code when used in e.g. a "return"
expression.
This commit is contained in:
parent
032c722d20
commit
d127c1d59e
2 changed files with 1 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue