CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE constant

CheckedModeCompileTimeErrorCode const CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE

7.6.1 Generative Constructors: In checked mode, it is a dynamic type error if o is not null and the interface of the class of o is not a subtype of the static type of the field v.

16.12.2 Const: It is a compile-time error if evaluation of a constant object results in an uncaught exception being thrown.

Parameters: 0: the name of the type of the initializer expression 1: the name of the type of the field

Implementation

CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE = CheckedModeCompileTimeErrorCode(
    'CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE',
    "The initializer type '{0}' can't be assigned to the field type "
        "'{1}'.")