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

New @overload fun():Class doesnt work on globals #1092

Closed
mkster opened this issue Apr 25, 2022 · 0 comments
Closed

New @overload fun():Class doesnt work on globals #1092

mkster opened this issue Apr 25, 2022 · 0 comments
Labels
bug Something isn't working feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)

Comments

@mkster
Copy link

mkster commented Apr 25, 2022

Describe the bug
I tried the new constructor overload but it only works with local classes like in the example

To Reproduce
try this:

---@class Class
---@overload fun():Class
---@field bla number
mt = {} --this is global instead

local x = mt() --> x is unknown

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCode
@sumneko sumneko added bug Something isn't working feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats) labels Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)
Projects
None yet
Development

No branches or pull requests

2 participants