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

返回泛型数组是否不支持 #193

Open
ghost90240 opened this issue Mar 27, 2024 · 1 comment
Open

返回泛型数组是否不支持 #193

ghost90240 opened this issue Mar 27, 2024 · 1 comment

Comments

@ghost90240
Copy link

---@generic T 
---@param param1 T
---@return T[]
local function test_one(param1)
end

local a = test_one(xxxx)    -- 此处的a提示的是T[]类型,而非真正传进去xxxx的数组类型
@kaishiqi
Copy link

kaishiqi commented Jun 2, 2024

https://github.com/kaishiqi/LuaHelper/releases/tag/0.2.26.1

@ghost90240 我魔改了一版,请试试看效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants