Fixes cvc5/cvc5-projects#369.
Now gives:
(error "Parse Error: proj-369.smt2:3.22: Symbol 'Bool' previously declared as a type
(define-sort _s0 (Bool Bool Bool Bool Bool Bool Bool Bool Bool) Bool)
^
")
DEFINE_SORT_TOK { PARSER_STATE->checkThatLogicIsSet(); }
symbol[name,CHECK_UNDECLARED,SYM_SORT]
{ PARSER_STATE->checkUserSymbol(name); }
- LPAREN_TOK symbolList[names,CHECK_NONE,SYM_SORT] RPAREN_TOK
+ LPAREN_TOK symbolList[names,CHECK_UNDECLARED,SYM_SORT] RPAREN_TOK
{ PARSER_STATE->pushScope();
for(std::vector<std::string>::const_iterator i = names.begin(),
iend = names.end();