diff options
| author | Vexu <git@vexu.eu> | 2020-11-15 13:03:48 +0200 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-11-15 13:03:48 +0200 |
| commit | f173d078c780c9946742c4ce686ccd0dccdb7e98 (patch) | |
| tree | 47cf88dce1e9f9d4db80290aec4ff5234845defb /src/value.zig | |
| parent | 643f526cd121173b4102ce3a07ee9bb4a1582cc2 (diff) | |
| download | zig-f173d078c780c9946742c4ce686ccd0dccdb7e98.tar.gz zig-f173d078c780c9946742c4ce686ccd0dccdb7e98.zip | |
stage2: outline container types
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 3 |
1 files changed, 2 insertions, 1 deletions
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 }, |
