Skip to content

Generics are not resolved for methods of classes when class is located in a table #578

@taminomara

Description

@taminomara

This is adjacent to #453. If I put class in a table, methods won't resolve generic variables declared on a class:

Code:

local ns = {}

--- @class Foo<T>
--- @field current T
ns.Ref = {}

--- @return T
function ns.Ref:get()
    return self.current
end
Image

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