diff --git a/test/behavior/error.zig b/test/behavior/error.zig index e5afd8255ed0551ed0344aee2403d364ea1c13e6..70edb900ff73134eff20cca8a66a06c62f5f96fe 100644 --- a/test/behavior/error.zig +++ b/test/behavior/error.zig @@ -1032,24 +1032,6 @@ test "function called at runtime is properly analyzed for inferred error set" { }; } -test "generic type constructed from inferred error set of unresolved function" { - if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - - const S = struct { - fn write(_: void, bytes: []const u8) !usize { - _ = bytes; - return 0; - } - const T = std.io.Writer(void, @typeInfo(@typeInfo(@TypeOf(write)).@"fn".return_type.?).error_union.error_set, write); - fn writer() T { - return .{ .context = {} }; - } - }; - _ = std.io.multiWriter(.{S.writer()}); -} - test "errorCast to adhoc inferred error set" { const S = struct { inline fn baz() !i32 {