Branch: Tag:

2022-03-18

2022-03-18 10:24:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: Use intersect_types() instead of and_pike_types() in `&().

Fixes intersection of types with negated types.

Fixes several testsuite failures.

2701:    case T_TYPE:    {    struct pike_type *t; -  t = and_pike_types(Pike_sp[-2].u.type, Pike_sp[-1].u.type); +  t = intersect_types(Pike_sp[-2].u.type, Pike_sp[-1].u.type, 0, 0, 0);    pop_n_elems(2);    push_type_value(t);    return;