Skip to content

泛型和alias联合使用的问题 #3196

@Silent-zzz

Description

@Silent-zzz

Issue Description

Image

Additional Notes

使用泛型返回alias类型似乎没有办法正确的返回类型, 我希望在new中传入类名创建对象,并且强制调用init才能返回对象,不过没有找到正确的注释办法

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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