diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-04-28 11:16:11 -0600 |
|---|---|---|
| committer | Tadeo Kondrak <me@tadeo.ca> | 2020-05-02 14:39:28 -0600 |
| commit | ca6db2d008cf3e0e3700e84400bd3d6e259e3c0f (patch) | |
| tree | a5975ad5f4f6c655577152d087e3f31eb5d060ad /lib/std | |
| parent | 1696e943acd67119104f303467c0e26eecb94544 (diff) | |
| download | zig-ca6db2d008cf3e0e3700e84400bd3d6e259e3c0f.tar.gz zig-ca6db2d008cf3e0e3700e84400bd3d6e259e3c0f.zip | |
Implement @Type() for EnumLiteral and FnFrame
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index af8033ae91..9d419f9af2 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -157,7 +157,7 @@ pub const TypeInfo = union(enum) { Fn: Fn, BoundFn: Fn, Opaque: void, - Frame: void, + Frame: Frame, AnyFrame: AnyFrame, Vector: Vector, EnumLiteral: void, @@ -317,6 +317,12 @@ pub const TypeInfo = union(enum) { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. + pub const Frame = struct { + function: var, + }; + + /// This data structure is used by the Zig language code generation and + /// therefore must be kept in sync with the compiler implementation. pub const AnyFrame = struct { child: ?type, }; |
