LuaHelper
LuaHelper copied to clipboard
返回泛型数组是否不支持
---@generic T
---@param param1 T
---@return T[]
local function test_one(param1)
end
local a = test_one(xxxx) -- 此处的a提示的是T[]类型,而非真正传进去xxxx的数组类型
https://github.com/kaishiqi/LuaHelper/releases/tag/0.2.26.1
@ghost90240 我魔改了一版,请试试看效果