lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

There is no missing-field diagnostic for 'number' fields

Open GiuseppeIII opened this issue 1 year ago • 1 comments

(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.

Screenshot_3

Note: there is type checking on the field Screenshot_4

GiuseppeIII avatar Aug 23 '23 07:08 GiuseppeIII