CONST_DEFERRED_CLASS constant

CompileTimeErrorCode const CONST_DEFERRED_CLASS

12.12.2 Const: It is a compile-time error if T is a deferred type.

Implementation

static const CompileTimeErrorCode CONST_DEFERRED_CLASS = CompileTimeErrorCode(
    'CONST_DEFERRED_CLASS', "Deferred classes can't be created with 'const'.",
    correction: "Try using 'new' to create the instance, or "
        "changing the import to not be deferred.")