Type Error: Function only returns 1 value, but 2 are required here
but without --!strict it does not give one.
--!strict
local T = {}
function T.Active(...)
print("hey, I want say: ", ...)
end
local success, err = pcall(T.Active, "something wrong", "with pcall?")
Expected behavior
No warn since according to the documentation pcall returns 2 values.
Idk, maybe it’s “expected” or already written down somewhere.
(message late and this problem remains-)
--!strict
local T = {}
function T.Active(...)
print("hey, its me again:", ...)
end
local success, err = pcall(T.Active, "something wrong", "with pcall?")
Hi there, sorry about the confusion, and thanks for the report! I don’t know who marked this as by design, but while it is expected, we do consider it a bug that we would like to fix eventually. I’ve placed it on our backlog.