pike.git / src / las.cmod

version» Context lines:

pike.git/src/las.cmod:3296:    0, "Type mismatch for value in foreach().");    }    free_type(value_type);    }    free_type(value_fun_type);    }    free_type(foreach_call_type);    } else {    /* Old-style foreach */    struct pike_type *array_zero; -  MAKE_CONSTANT_TYPE(array_zero, tLArr(tZero,tZero)); +  MAKE_CONSTANT_TYPE(array_zero, tLArr(tUnknown, tUnknown));       if (!pike_types_le(array_zero, expression->type)) {    yytype_report(REPORT_ERROR,    NULL, 0, array_zero,    NULL, 0, expression->type,    0, "Bad argument 1 to foreach().");    } else {    if ((c->lex.pragmas & ID_STRICT_TYPES) &&    !pike_types_le(expression->type, array_type_string)) {    yytype_report(REPORT_WARNING,