FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR constant

CompileTimeErrorCode const FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR

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

7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by a function other than a non-redirecting generative constructor.

Implementation

static const CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR =
    CompileTimeErrorCode('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR',
        "The redirecting constructor can't have a field initializer.",
        correction: "Try using a normal parameter.")