The following I expect to show the missing-fields diagnostic, but instead it shows the param-type-not-match diagnostic:
---@class testing
---@field wow string
---@field testing string
---@param c testing?
local function test(c) end
test({
testing = '',
})
If the ? is removed from the end of the testing parameter, then both the missing-fields and param-type-not-match diagnostics disappear. Side note, I'd prefer only the missing-fields diagnostic to show up since that's how lua_ls behaves.
The following I expect to show the
missing-fieldsdiagnostic, but instead it shows theparam-type-not-matchdiagnostic:If the
?is removed from the end of thetestingparameter, then both themissing-fieldsandparam-type-not-matchdiagnostics disappear. Side note, I'd prefer only themissing-fieldsdiagnostic to show up since that's how lua_ls behaves.