aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/call.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-17 20:23:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-18 19:17:21 -0700
commitf0530385b57218ef323747bdb7438330a07d25cc (patch)
tree07d87e78355e518aa67ea48e3cdf1a242917a5d7 /test/behavior/call.zig
parent321ccbdc525ab0f5862e42378b962c10ec54e4a1 (diff)
downloadzig-f0530385b57218ef323747bdb7438330a07d25cc.tar.gz
zig-f0530385b57218ef323747bdb7438330a07d25cc.zip
update existing behavior tests and std lib to new for loop semantics
Diffstat (limited to 'test/behavior/call.zig')
-rw-r--r--test/behavior/call.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/call.zig b/test/behavior/call.zig
index 4cdd54584f..9622aa3144 100644
--- a/test/behavior/call.zig
+++ b/test/behavior/call.zig
@@ -364,7 +364,7 @@ test "Enum constructed by @Type passed as generic argument" {
try expect(@enumToInt(a) == b);
}
};
- inline for (@typeInfo(S.E).Enum.fields) |_, i| {
+ inline for (@typeInfo(S.E).Enum.fields, 0..) |_, i| {
try S.foo(@intToEnum(S.E, i), i);
}
}