nil arguments are still considered required
Closed this issue · 2 comments
Hedwig7s commented
Nil arguments to functions are considered required arguments despite the default argument being nil
Example:
local function test(test1: string, test2: nil)
end
test("test")
wrong number of arguments (given 1, expects 2)
Hedwig7s commented
Possibly a bug with the vscode-teal PR but I don't know the specifics
Hedwig7s commented
In fact I'll assume it is for the time being