Skip to content

Class constructor and instantiation function definition #715

@xuhuanzy

Description

@xuhuanzy

Possible grammar

---@class ConstructorParameters<T>
---@class RemoveSelf<T>

---@generic T
---@inject_class T constructor({nonColon=false, returnSelf=true, name=""__init""})
---@param name `T`
---@return T
local function class(name)

end


---@generic T
---@param name `T`
---@param ... RemoveSelf<ConstructorParameters<T>>
---@return T
local function new(name, ...)

end

while also removing runtime.classDefaultCall

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions