Correct test for number of arguments to append.
From-SVN: r168163
This commit is contained in:
parent
8e6c2a27c5
commit
d7ab2512cd
1 changed files with 1 additions and 1 deletions
|
@ -7382,7 +7382,7 @@ Builtin_call_expression::do_check_types(Gogo*)
|
|||
case BUILTIN_APPEND:
|
||||
{
|
||||
const Expression_list* args = this->args();
|
||||
if (args == NULL || args->empty())
|
||||
if (args == NULL || args->size() < 2)
|
||||
{
|
||||
this->report_error(_("not enough arguments"));
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue