Syntax error in constantArray