| author | |
| committer | |
| log | 5e8186a8ce680894547112d43da3781b9e1c0793 |
| tree | dc9fef2976d3e5485acb1475c22aa8809cdcf6a9 |
| parent | fe415dae04ee32d05228f11b2130504727fea451 |
1 files changed, 3 insertions(+), 1 deletions(-)
lib/std/zig/ast.zig+3-1| ... | ... | @@ -967,7 +967,9 @@ pub const Node = struct { |
| 967 | 967 | pub fn iterate(self: *ParamDecl, index: usize) ?*Node { |
| 968 | 968 | var i = index; |
| 969 | 969 | |
| 970 | if (i < 1) return self.type_node; | |
| 970 | if (i < 1) { | |
| 971 | return if (self.var_args_token == null) self.type_node else null; | |
| 972 | } | |
| 971 | 973 | i -= 1; |
| 972 | 974 | |
| 973 | 975 | return null; |