local record Callable
metamethod __call: function(self: Callable): boolean
end
local function f(): boolean
local callable = {} as Callable
return callable()
end
f()
However, this errors with "not a function: Call_Type":
local record Callable
type Call_Type = function(self: Callable): boolean
metamethod __call: Call_Type
end
local function f(): boolean
local callable = {} as Callable
return callable()
end
f()
This typechecks as expected:
However, this errors with "not a function: Call_Type":
(checked using code currently in
master
)