Skip to content

Resolution on the Use of Generics #1088

@xuhuanzy

Description

@xuhuanzy
---@class A<T>

---@type A
local A -- At this moment, should he be A<unknown> or any? Currently for any

In TypeScript

class A<T> {
}
let a: A; //  is any
let a = new A(); // is A<unknown>

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