From bbd1364de53186af975ef1694fdc8451208ce626 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 19 Oct 2026 15:14:01 +0200 Subject: zilch: make object calls type agnostic --- src/zilch/Promise.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zilch/Promise.zig') 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; -- cgit v1.2.3-70-g09d2