lua-language-server
lua-language-server copied to clipboard
There is no missing-field diagnostic for 'number' fields
(Split from: https://github.com/LuaLS/lua-language-server/issues/2279)
I would expect the following code to error with a missing-field for [0]
---@class TestClass
---@field [0] string
---@field test string
---@param test TestClass
local function test(test)
end
test({test = "test"})
but none is given.
Note: there is type checking on the field