Closed
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
MacOS
What is the issue affecting?
Annotations, Type Checking, Diagnostics/Syntax Checking
Expected Behaviour
---@class lanes.Lane<T> : { [integer] : T }
---@field status lanes.Lane.Status
---@field error string?
local Lane = {}
---@generic T
---@param self lanes.Lane<T>
---@param timeout number?
---@return T ...
function Lane:join(timeout) end
---@type lanes.Lane<integer>
local test
local i = test:join()
:join()
exists, and i
is type integer
Actual Behaviour

Reproduction steps
Use the code above
Additional Notes
No response
Log File
No response