-9163fa28b89222cd851c0d24bd6a1384d1379c55
+d0a102eea2262e3fca89b1eb342fd03328c4aa16
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Typed_identifier_list::const_iterator pp = fntype->parameters()->begin();
bool is_interface_method =
this->fn_->interface_field_reference_expression() != NULL;
+ size_t argcount = this->args_->size();
if (!is_interface_method && fntype->is_method())
{
// Skip the receiver argument, which cannot be interface.
pa++;
+ argcount--;
+ }
+ if (argcount != fntype->parameters()->size())
+ {
+ go_assert(saw_errors());
+ return;
}
for (; pa != this->args_->end(); ++pa, ++pp)
{
Type*
Call_expression::do_type()
{
+ if (this->is_error_expression())
+ return Type::make_error_type();
if (this->type_ != NULL)
return this->type_;