Checks that constant or readonly variable is being reassigned.