local record M
record daemon_plugin
start: function(self: M.daemon_plugin, config: any)
stop: function(self: M.daemon_plugin)
end
end
local b : M.daemon_plugin = {}
-- cannot add undeclared function 'start' outside of the scope where 'b' was originally declared
function b:start(config: any)
end
-- works
function b.start(self: M.daemon_plugin, config: any)
end
-- works
function b:stop()
end
-- works
function b.stop(self: M.daemon_plugin)
end
if the function has no more arguments, there is no error message
if the function has no more arguments, there is no error message