NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY constant

CompileTimeErrorCode const NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY

12.7 Maps: It is a compile time error if either a key or a value of an entry in a constant map 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_MAP_VALUE_FROM_DEFERRED_LIBRARY = CompileTimeErrorCode(
    'NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY',
    "Constant values from a deferred library can't be used as values in "
        "a const map literal.",
    correction: "Try removing the keyword 'const' from the map literal.")