-
-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
questionUser has a questionUser has a question
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?
Type Checking, Completion, Diagnostics/Syntax Checking
Expected Behaviour
I had to rollback to version 3.6.4 where it was working

Actual Behaviour
If you have a function with the same name as the class, and return the class, the return type is not being recognized.

Reproduction steps
Define the global class in a separated file and try to use it elsewhere
---@class Dummy
Dummy = {}
---@param id integer
---@return Dummy
function Dummy(id) end
---@return string
function Dummy:getFoo() end
---@return integer
function Dummy:getBar() endAdditional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
questionUser has a questionUser has a question