AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER constant

CompileTimeErrorCode const AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER

No parameters.

Implementation

static const CompileTimeErrorCode AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER =
    CompileTimeErrorCode(
        'AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER',
        "This literal must be either a map or a set, but the elements don't "
            "have enough information for type inference to work.",
        correction:
            "Try adding type arguments to the literal (one for sets, two "
            "for maps).",
        hasPublishedDocs: true)