diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-19 15:14:01 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-19 15:16:33 +0200 |
| commit | bbd1364de53186af975ef1694fdc8451208ce626 (patch) | |
| tree | 467e72f70b0fca12fb053618913ee247f7721137 /src/zilch/Promise.zig | |
| parent | 5b7b5c48e50d377b794dbbfc1c270ec6fd387e4b (diff) | |
zilch: make object calls type agnostic
Diffstat (limited to 'src/zilch/Promise.zig')
| -rw-r--r-- | src/zilch/Promise.zig | 2 |
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; |