Skip to content

Support making a constructor private (while not making the whole class private) #2761

Open
@mtaran-google

Description

@mtaran-google

e.g. then you could expose a class that can only be used in type annotations, or for its static methods (which could include factory methods that call out to the constructor).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions