diff --git a/src/type.zig b/src/type.zig index e4ae2d2c353955787d8bf304a07e8f85ef5d4049..e2e2171026f94aea51bbaa173518d6d80d691772 100644 --- a/src/type.zig +++ b/src/type.zig @@ -1869,7 +1869,7 @@ pub const Type = struct { return switch (mod.intern_pool.indexToKey(ty.toIntern())) { .opt_type => |child_type| child_type == .anyerror_type or switch (mod.intern_pool.indexToKey(child_type)) { .ptr_type => |ptr_type| ptr_type.flags.size != .C and !ptr_type.flags.is_allowzero, - .error_set_type => true, + .error_set_type, .inferred_error_set_type => true, else => false, }, .ptr_type => |ptr_type| ptr_type.flags.size == .C,