lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

[Feature Request] Support capturing generic type for @overload

Open amsitlab opened this issue 5 months ago • 3 comments


---@class base

---@class builder
---@generic T: base
---@overload fun(name: `T`): T
local builder = {}

local function __call(self, name)
....
end

setmetatable(builder, { __call = __call })

Thats will be helpfull for table have an metatable.__call

amsitlab avatar May 20 '25 22:05 amsitlab