diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2022-04-30 07:34:21 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-04-30 13:29:21 -0400 |
| commit | d127c1d59ebf19e5ffaedece99a39f69712683b0 (patch) | |
| tree | a0eeee42fefce1fba094ab8ce6851452aba561ac /lib | |
| parent | 032c722d2019a475362c0ae01241a80417bdd8a2 (diff) | |
| download | zig-d127c1d59ebf19e5ffaedece99a39f69712683b0.tar.gz zig-d127c1d59ebf19e5ffaedece99a39f69712683b0.zip | |
CBE: handle returning `undefined` for ErrorUnion
Just like for Struct in 8238d4b33585a715c58ab559cd001dd3ea1db55b, 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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
