aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorDaniele Cocca <daniele.cocca@gmail.com>2022-04-30 07:34:21 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-04-30 13:29:21 -0400
commitd127c1d59ebf19e5ffaedece99a39f69712683b0 (patch)
treea0eeee42fefce1fba094ab8ce6851452aba561ac /lib/std
parent032c722d2019a475362c0ae01241a80417bdd8a2 (diff)
downloadzig-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/std')
0 files changed, 0 insertions, 0 deletions