Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic class methods don't show up #2196

Closed
Frityet opened this issue Jul 5, 2023 · 2 comments
Closed

Generic class methods don't show up #2196

Frityet opened this issue Jul 5, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists feat/generic Related to generic emulation feature

Comments

@Frityet
Copy link
Contributor

Frityet commented Jul 5, 2023

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

Screenshot 2023-07-05 at 16 52 05

Reproduction steps

Use the code above

Additional Notes

No response

Log File

No response

@MikuAuahDark
Copy link

Generic class is currently not supported. #1861

@carsakiller
Copy link
Collaborator

Yes, I think this can be marked as a duplicate of #734

@carsakiller carsakiller closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2023
@carsakiller carsakiller added duplicate This issue or pull request already exists feat/generic Related to generic emulation feature labels Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists feat/generic Related to generic emulation feature
Projects
None yet
Development

No branches or pull requests

3 participants