aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-27 19:39:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-27 19:39:28 -0700
commit6ed7850972c5d74912e6802474564de332ecf0d9 (patch)
tree21f6e28332d2abeaebbf75088a4b8af6542c72f7 /src/type.zig
parentfc1a5cd9e74faf19e5974c733b0bcd9444d48b7b (diff)
downloadzig-6ed7850972c5d74912e6802474564de332ecf0d9.tar.gz
zig-6ed7850972c5d74912e6802474564de332ecf0d9.zip
Sema: fix anytype parameters whose types require comptime
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index 1482710e51..fb543e1f2c 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -4275,7 +4275,6 @@ pub const Type = extern union {
is_generic: bool,
pub fn paramIsComptime(self: @This(), i: usize) bool {
- if (!self.is_generic) return false;
assert(i < self.param_types.len);
return self.comptime_params[i];
}