We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6665fa commit 41539f0Copy full SHA for 41539f0
src/main.zig
@@ -128,7 +128,7 @@ pub const Func = opaque {
128
const cb_meta = @typeInfo(@TypeOf(callback));
129
switch (cb_meta) {
130
.Fn => {
131
- if (cb_meta.Fn.args.len > 0 or cb_meta.Fn.return_type.? != void) {
+ if (cb_meta.Fn.params.len > 0 or cb_meta.Fn.return_type.? != void) {
132
@compileError("only callbacks with no input args and no results are currently supported");
133
}
134
},
0 commit comments