teal-language/teal-language-server

nil arguments are still considered required

Closed this issue · 2 comments

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)

Possibly a bug with the vscode-teal PR but I don't know the specifics

In fact I'll assume it is for the time being