TOP_LEVEL_FUNCTION_LITERAL_BLOCK constant

StrongModeCode const TOP_LEVEL_FUNCTION_LITERAL_BLOCK

Implementation

static const StrongModeCode TOP_LEVEL_FUNCTION_LITERAL_BLOCK = StrongModeCode(
    ErrorType.HINT,
    'TOP_LEVEL_FUNCTION_LITERAL_BLOCK',
    "The type of the function literal can't be inferred because the "
        "literal has a block as its body.",
    correction: "Try adding an explicit type to the variable.")