aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/Promise.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 15:14:01 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 15:16:33 +0200
commitbbd1364de53186af975ef1694fdc8451208ce626 (patch)
tree467e72f70b0fca12fb053618913ee247f7721137 /src/zilch/Promise.zig
parent5b7b5c48e50d377b794dbbfc1c270ec6fd387e4b (diff)
zilch: make object calls type agnostic
Diffstat (limited to 'src/zilch/Promise.zig')
-rw-r--r--src/zilch/Promise.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zilch/Promise.zig b/src/zilch/Promise.zig
index 09654e3..76362e7 100644
--- a/src/zilch/Promise.zig
+++ b/src/zilch/Promise.zig
@@ -13,7 +13,7 @@ const Self = @This();
// else an allocation would be necessary!
var promise_value: Value = undefined;
-pub inline fn then(self: *Self, env: *Env, func: anytype, ud: *anyopaque) Future(void) {
+pub inline fn then(self: anytype, env: *Env, func: anytype, ud: *anyopaque) Future(void) {
const wrapper = struct {
fn wrapper(userdata: *anyopaque) callconv(.c) void {
const args = @typeInfo(@TypeOf(func)).@"fn".params;