aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-09 15:32:12 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-09 15:35:13 -0700
commit83bb3d1ad692127cd51c101b6a01fc853ab72990 (patch)
treeb7a8c22eeb3dcbf252dec787b9437b9aee117dbb /test/behavior/tuple.zig
parent2aa4a32097392c869fe2ef58f372a960c0268859 (diff)
downloadzig-83bb3d1ad692127cd51c101b6a01fc853ab72990.tar.gz
zig-83bb3d1ad692127cd51c101b6a01fc853ab72990.zip
Sema: fix generic fn instantiation with anytype
When the anytype parameter had only one-possible-value (e.g. `void`), it would create a mismatch in the function type and the function call. Now the function type and the callsite both omit the one-possible-value anytype parameter in instantiated generic functions.
Diffstat (limited to 'test/behavior/tuple.zig')
-rw-r--r--test/behavior/tuple.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig
index 81c5ac0e1f..91be6e51e4 100644
--- a/test/behavior/tuple.zig
+++ b/test/behavior/tuple.zig
@@ -50,7 +50,11 @@ test "tuple multiplication" {
}
test "more tuple concatenation" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
const T = struct {
fn consume_tuple(tuple: anytype, len: usize) !void {