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?
Type Checking
Expected Behaviour
Getting a warning that the first argument (self) is not a string.
Actual Behaviour
No warning
Reproduction steps
---@class Class
local Class = {}
---@param source string
function Class.staticCreator(source)
end
Class.staticCreator(true)
Class:staticCreator() -- Expecting a waring
Additional Notes

Log File
No response
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?
Type Checking
Expected Behaviour
Getting a warning that the first argument (
self) is not a string.Actual Behaviour
No warning
Reproduction steps
Additional Notes
Log File
No response