aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2020-09-25 14:12:11 -0600
committerTadeo Kondrak <me@tadeo.ca>2020-10-06 22:08:24 -0600
commit069fbb3c01d8be0940d60e3324213a0cde4a42d5 (patch)
tree6e236ae2f9cca59057afd945ec5cad6fee855d27 /lib/std/builtin.zig
parent7f7e2d608adb81cd00e54fd7fe5e7035a890565f (diff)
downloadzig-069fbb3c01d8be0940d60e3324213a0cde4a42d5.tar.gz
zig-069fbb3c01d8be0940d60e3324213a0cde4a42d5.zip
Add opaque type syntax
Diffstat (limited to 'lib/std/builtin.zig')
-rw-r--r--lib/std/builtin.zig8
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,
};