no-semicolon gets an expression
how to solve this compilation error?