Skip to content

[Feature Request] Support capturing generic type for @overload #3190

@amsitlab

Description

@amsitlab
---@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions