INVALID_ASSIGNMENT constant

StaticTypeWarningCode const INVALID_ASSIGNMENT = const StaticTypeWarningCode('INVALID_ASSIGNMENT', "A value of type '{0}' can't be assigned to a variable of type '{1}'.", correction: "Try changing the type of the variable, or " "casting the right-hand type to '{1}'.")

12.18 Assignment: It is a static type warning if the static type of e may not be assigned to the static type of v. The static type of the expression v = e is the static type of e.

12.18 Assignment: It is a static type warning if the static type of e may not be assigned to the static type of C.v. The static type of the expression C.v = e is the static type of e.

12.18 Assignment: Let T be the static type of e1. It is a static type warning if the static type of e2 may not be assigned to T.

Parameters: 0: the name of the right hand side type 1: the name of the left hand side type

Implementation

static const StaticTypeWarningCode INVALID_ASSIGNMENT =
    const StaticTypeWarningCode('INVALID_ASSIGNMENT',
        "A value of type '{0}' can't be assigned to a variable of type '{1}'.",
        correction: "Try changing the type of the variable, or "
            "casting the right-hand type to '{1}'.")