-
-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations, Completion
Expected Behaviour
---@field [string] any
interfere with function declaration
Actual Behaviour
the types of the fields of the class are not correct: function methode() -> any
expected, but get number
Reproduction steps
---@class MyClass
---@field anyField string
---@field [string] number
local MyClass = {
---@return any
methode = function () end
}
MyClass.methode()
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working