FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS constant

CompileTimeErrorCode const FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS

7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile time error if more than one initializer corresponding to a given instance variable appears in k's list.

Parameters: 0: the name of the field being initialized multiple times

Implementation

static const CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS =
    CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS',
        "The field '{0}' can't be initialized twice in the same constructor.",
        correction: "Try removing one of the initializations.")