aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/enum.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-22 13:53:10 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-22 13:53:10 -0700
commitb23f10b42403406f40158ec11de95a3f80ce5879 (patch)
treefa3a9e848283e73eb4774d90ee7994192251e4a2 /test/behavior/enum.zig
parent0d422ce342977b56247ec95aa0bd58045ee8b66b (diff)
downloadzig-b23f10b42403406f40158ec11de95a3f80ce5879.tar.gz
zig-b23f10b42403406f40158ec11de95a3f80ce5879.zip
Sema: fix comptime coercion of payload to error union
Diffstat (limited to 'test/behavior/enum.zig')
-rw-r--r--test/behavior/enum.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig
index e8171a752a..9dd19d8f2e 100644
--- a/test/behavior/enum.zig
+++ b/test/behavior/enum.zig
@@ -907,8 +907,6 @@ test "enum literal casting to tagged union" {
const Bar = enum { A, B, C, D };
test "enum literal casting to error union with payload enum" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
var bar: error{B}!Bar = undefined;
bar = .B; // should never cast to the error set
@@ -932,8 +930,6 @@ test "exporting enum type and value" {
}
test "constant enum initialization with differing sizes" {
- if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
-
try test3_1(test3_foo);
try test3_2(test3_bar);
}