From f173d078c780c9946742c4ce686ccd0dccdb7e98 Mon Sep 17 00:00:00 2001 From: Vexu Date: Sun, 15 Nov 2020 13:03:48 +0200 Subject: stage2: outline container types --- src/value.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index 8cbffecab6..5ca40d5f32 100644 --- a/src/value.zig +++ b/src/value.zig @@ -252,7 +252,7 @@ pub const Value = extern union { .@"error" => return self.copyPayloadShallow(allocator, Payload.Error), // memory is managed by the declaration - .error_set => return self.copyPayloadShallow(allocator, Payload.ErrorSet), + .error_set => return self, } } @@ -1865,6 +1865,7 @@ pub const Value = extern union { val: f128, }; + // TODO move to type.zig pub const ErrorSet = struct { base: Payload = .{ .tag = .error_set }, -- cgit v1.2.3