REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR constant

CompileTimeErrorCode const REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR

7.6.1 Generative constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor.

Implementation

REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR = CompileTimeErrorCode(
    'REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR',
    "Generative constructor can't redirect to a factory constructor.",
    correction: "Try redirecting to a different constructor.")