pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:4844:    opt_flags |= id->opt_flags;    /* NB: The dispatcher needs the variant references to    * not get overloaded for the ::-operator to work.    */    ref->id_flags |= ID_LOCAL;    if (type)    {    struct pike_type * temp = type;    if ((Pike_compiler->compiler_pass == COMPILER_PASS_LAST) &&    !ref->inherit_offset && -  !check_variant_overload(id->type, type)) { +  !check_variant_overload(type, id->type)) {    /* This symbol is shadowed by later variants. */    yytype_report(REPORT_WARNING,    NULL, 0, NULL,    Pike_compiler->new_program->strings[id->filename_strno],    id->linenumber, id->type,    0, "Function %S() masked by later variant.",    name);    ref_push_type_value(type);    low_yyreport(REPORT_WARNING,    Pike_compiler->new_program->strings[id->filename_strno],