We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
---@class Object ---@field a string ---@field GetObjects function local Object = {} ---@return Object[] function Object:GetObjects() end local O = Object:GetObjects() for i = 1, #O do local o = O[1] print(o.a) end for key, value in pairs(Object:GetObjects()) do print(key, value.a) end
Results for *.a: https://gyazo.com/1ae1e0dbbbd626b69df6227c75e642ab https://gyazo.com/96c947f45723f84b1f4452e07325d68a
Expected results + manual fix:
It seems like
---@return type[]
Doesent work properly.
The text was updated successfully, but these errors were encountered:
Not fully supported yet.
Sorry, something went wrong.
@sumneko I see, thanks for the information.
Should supported in 1.4.0
@sumneko
---@class AnObject ---@field public Name string local AnObject = {} ---@class ObjectsManager ---@field GetObjects function ---@field GetObject function local ObjectsManager = {} ---@return AnObject[] function ObjectsManager:GetObjects() end ---@param ID number ---@return AnObject function ObjectsManager:GetObject(ID) end local Objects = ObjectsManager:GetObjects() for i = 1, #Objects do local Object = Objects[i] print(Object.Name) -- Does not work end local Object = ObjectsManager:GetObject(1) print(Object.Name) -- Works
If i change Objects[i] to Objects[1] it does.
Objects[i]
Objects[1]
923fcd8
No branches or pull requests
Results for *.a:
https://gyazo.com/1ae1e0dbbbd626b69df6227c75e642ab
https://gyazo.com/96c947f45723f84b1f4452e07325d68a
Expected results + manual fix:
https://gyazo.com/268ef8b6a6f5bad7566d32d1d7b5382e
https://gyazo.com/dfbc5455c8ba8cef3ccf2a7844a5f87e
https://gyazo.com/1bf3c1c57e1dc6c6e7c1584087356196
It seems like
---@return type[]
Doesent work properly.
The text was updated successfully, but these errors were encountered: