A semicolon is inappropriate in this context, or the statement terminated by the semicolon has an error.
To correct this error
-
Remove the semicolon.
-
Make sure that the statement terminated by the semicolon has no other errors.