pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:3096:    /* Should not happen. */    yytype_report(REPORT_ERROR,    NULL, 0, NULL,    NULL, 0, NULL,    0, "Bad iterator type for value in foreach().");    } else {    if( CDR(lvalues)->type->type == PIKE_T_AUTO )    {    if(val_type) copy_pike_type(*val_type,value_type);    } -  if (!pike_types_le(value_type, CDR(lvalues)->type)) { +  else if (!pike_types_le(value_type, CDR(lvalues)->type)) {    int level = REPORT_NOTICE;    if (!match_types(CDR(lvalues)->type, value_type)) {    level = REPORT_ERROR;    } else if (c->lex.pragmas & ID_STRICT_TYPES) {    level = REPORT_WARNING;    }    yytype_report(level,    NULL, 0, value_type,    NULL, 0, CDR(lvalues)->type,    0, "Type mismatch for value in foreach().");