diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-09-25 14:12:11 -0600 |
|---|---|---|
| committer | Tadeo Kondrak <me@tadeo.ca> | 2020-10-06 22:08:24 -0600 |
| commit | 069fbb3c01d8be0940d60e3324213a0cde4a42d5 (patch) | |
| tree | 6e236ae2f9cca59057afd945ec5cad6fee855d27 /lib/std/builtin.zig | |
| parent | 7f7e2d608adb81cd00e54fd7fe5e7035a890565f (diff) | |
| download | zig-069fbb3c01d8be0940d60e3324213a0cde4a42d5.tar.gz zig-069fbb3c01d8be0940d60e3324213a0cde4a42d5.zip | |
Add opaque type syntax
Diffstat (limited to 'lib/std/builtin.zig')
| -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 68bbbe3b2d..fe72046e36 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -199,7 +199,7 @@ pub const TypeInfo = union(enum) { Union: Union, Fn: Fn, BoundFn: Fn, - Opaque: void, + Opaque: Opaque, Frame: Frame, AnyFrame: AnyFrame, Vector: Vector, @@ -362,6 +362,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 Opaque = struct { + decls: []const Declaration, + }; + + /// 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: anytype, }; |
