LATE_FINAL_LOCAL_ALREADY_ASSIGNED constant

CompileTimeErrorCode const LATE_FINAL_LOCAL_ALREADY_ASSIGNED

nnbd/feature-specification.md

It is a compile time error to assign a value to a local variable marked late and final when the variable is definitely assigned.

Implementation

static const CompileTimeErrorCode LATE_FINAL_LOCAL_ALREADY_ASSIGNED =
    CompileTimeErrorCode('LATE_FINAL_LOCAL_ALREADY_ASSIGNED',
        "The late final local variable is already definitely assigned.",
        correction: "Try removing the 'late' modifier, or don't reassign "
            "the value.")