NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY constant

CompileTimeErrorCode const NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY

12.6 Lists: It is a compile time error if an element of a constant list literal is not a compile-time constant.

12.1 Constants: A qualified reference to a static constant variable that is not qualified by a deferred prefix.

Implementation

NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY = CompileTimeErrorCode(
    'NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY',
    "Constant values from a deferred library can't be used as values in "
        "a 'const' list.",
    correction:
        "Try removing the keyword 'const' from the list literal.")