diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-03-01 23:03:26 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-03-08 00:33:59 +0200 |
| commit | fc62ff77c3921758624a81970f3098300992ee47 (patch) | |
| tree | 2bd59acb1277f412be92898edb1dd4ea74f811bf /src/type.zig | |
| parent | d9e46a4b901fad0e6d684102ea08444dcec30909 (diff) | |
| download | zig-fc62ff77c3921758624a81970f3098300992ee47.tar.gz zig-fc62ff77c3921758624a81970f3098300992ee47.zip | |
stage2: error union payload must also be a valid variable type
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig index b9f9207d4a..9599a165fd 100644 --- a/src/type.zig +++ b/src/type.zig @@ -1663,7 +1663,6 @@ pub const Type = extern union { .Int, .Float, .ErrorSet, - .ErrorUnion, .Enum, .Frame, .AnyFrame, @@ -1687,6 +1686,7 @@ pub const Type = extern union { return ty.optionalChild(&buf).isValidVarType(is_extern); }, .Pointer, .Array => ty = ty.elemType(), + .ErrorUnion => ty = ty.errorUnionChild(), .Fn => @panic("TODO fn isValidVarType"), .Struct => @panic("TODO struct isValidVarType"), |
