Assignment and declaration error checking