"deprecated" attribute was not inside the semicolon