With --!strict
, pcall
gives a warning:
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.