Commit 7eae26d608
Changed files (1)
test
behavior
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 {