Branch: Tag:

2022-03-16

2022-03-16 16:12:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "Compiler [Typechecker]: Promote type operator failure to void."

This commit broke the type checking of foreach() in Getopt.

This reverts commit 4ebedfbedd5113292b43577f1bad339bbbae1f28.

1033:    break;    }    default: -  tmp = apply_type_operator(op, t, arg); -  if (!tmp) { -  tmp = void_type_string; -  add_ref(tmp); -  } -  *Pike_compiler->type_stackp = tmp; +  *Pike_compiler->type_stackp = apply_type_operator(op, t, arg);    free_type(t);    break;    }