-
-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsfeat/genericRelated to generic emulation featureRelated to generic emulation feature
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
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already existsfeat/genericRelated to generic emulation featureRelated to generic emulation feature