You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local record util
end
-- Using 'K' works though:
-- function util.remove<K>(_list:{K}, _item:K)
function util.remove<T>(_list:{T}, _item:T)
error("not implemented")
end
local function foo<T>(handler:function(T), handlers:{function(T)})
util.remove(handlers, handler)
end
local handlers:{function(integer)} = {}
local function bar(_value:integer)
error("not implemented")
end
foo(bar, handlers)
Error:
The text was updated successfully, but these errors were encountered: