Skip to content

Allow private constructors to be called from within inline/macro #17804

@markehammons

Description

@markehammons

When trying to write a macro apply method, I ran into the error Implementation restriction: cannot use private constructors in inlineinline methods

This restriction is quite silly, as it's very easy to bypass by adding a private method to the same object that calls the private constructor for the macro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions