Branch: Tag:

2021-07-14

2021-07-14 10:22:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix erroneous deprecation warning in obscure case.

Fixes [REP-60].

8166:    b = b->cdr;    goto recurse;    } -  if (!low_pike_types_le(a, b->cdr, array_cnt, flags)) return 0; +  if (!low_pike_types_le(a, b->cdr, array_cnt, flags|LE_STRICT_FUN)) return 0;    ref_push_string((struct pike_string *)b->car);    ref_push_type_value(a);    ref_push_type_value(b->cdr);
8731:    b = b->cdr;    }    -  if (a_tmp && (a_tmp->type != T_VOID)) { +  if ((a_tmp && (a_tmp->type != T_VOID)) || (flags & LE_STRICT_FUN)) {    /* Note: flags never has grouping at this point. */    if (!low_pike_types_le(b_tmp, a_tmp, 0, flags ^ LE_A_B_SWAPPED)) {    return 0;