NON_GENERATIVE_CONSTRUCTOR constant

CompileTimeErrorCode const NON_GENERATIVE_CONSTRUCTOR

7.6.1 Generative Constructors: Let C be the class in which the superinitializer appears and let S be the superclass of C. Let k be a generative constructor. It is a compile-time error if class S does not declare a generative constructor named S (respectively S.id)

Implementation

static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR =
    CompileTimeErrorCode('NON_GENERATIVE_CONSTRUCTOR',
        "The generative constructor '{0}' expected, but factory found.",
        correction:
            "Try calling a different constructor in the superclass, or "
            "making the called constructor not be a factory constructor.")