generic 对function class.bar形式无效吗? #2639
Replies: 1 comment
-
我发现好像必须传字符串才能识别, 改为这样就正常了 ---@class Vehicle
local Vehicle = {}
---@generic T
---@param self T
---@return T
function Vehicle:drive() end
---@class Car:Vehicle
local Car = {} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions