aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-16 12:41:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-16 12:41:03 -0700
commitfdd11f6cee7ef14253cef53729e09d9415b4be7e (patch)
tree6de8143acc2874da3464ddb931370f21c71ce3ee /src/type.zig
parent4d6d6977b05571e6d164dbf5f26c7a48ee3541a3 (diff)
downloadzig-fdd11f6cee7ef14253cef53729e09d9415b4be7e.tar.gz
zig-fdd11f6cee7ef14253cef53729e09d9415b4be7e.zip
Sema: coercion from error sets to `anyerror`
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index 278b8af18d..d845d8a49a 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -3962,6 +3962,7 @@ pub const Type = extern union {
pub const @"comptime_int" = initTag(.comptime_int);
pub const @"void" = initTag(.void);
pub const @"type" = initTag(.type);
+ pub const @"anyerror" = initTag(.anyerror);
pub fn ptr(arena: *Allocator, d: Payload.Pointer.Data) !Type {
assert(d.host_size == 0 or d.bit_offset < d.host_size * 8);