CONST_WITH_UNDEFINED_CONSTRUCTOR constant

CompileTimeErrorCode const CONST_WITH_UNDEFINED_CONSTRUCTOR

16.12.2 Const: It is a compile-time error if T.id is not the name of a constant constructor declared by the type T.

Parameters: 0: the name of the type 1: the name of the requested constant constructor

Implementation

static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR =
    CompileTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR',
        "The class '{0}' doesn't have a constant constructor '{1}'.",
        correction: "Try calling a different constructor.")