```
milovidov-desktop :) SELECT -1::INT

Syntax error: failed at position 10 ('::')
```
if (has_distinct)
            return false;
        expr_list_params = expr_list_args;
        expr_list_args = nullptr;
        pos_after_bracket = pos;
        old_expected = expected;
        if (all.ignore(pos, expected))
            has_all = true;
        if (distinct.ignore(pos, expected))
            has_distinct = true;
        if (!has_all && all.ignore(pos, expected))
            has_all = true;
        if (has_all && has_distinct)
            return false;
        if (has_all || has_distinct)
        {
            
            if (pos->type == TokenType::Comma || pos->type == TokenType::ClosingRoundBracket)
            {
                pos = pos_after_bracket;
                expected = old_expected;
                has_distinct = false;
            }
        }
        if (!contents.parse(pos, expr_list_args, expected))
            return false;
        if (pos->type != TokenType::ClosingRoundBracket)
            return false;
        ++pos;
    }