Branch: Tag:

2021-03-11

2021-03-11 18:09:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix indexing of __unknown__.

9140:    return zero_type_string;    }    -  while((t->type == PIKE_T_NAME) || +  while(t && +  ((t->type == PIKE_T_NAME) ||    (t->type == PIKE_T_ATTRIBUTE) ||    (t->type == T_ASSIGN) || -  (t->type == T_SCOPE)) { +  (t->type == T_SCOPE))) {    t = t->cdr;    } -  +  if (!t) { +  add_ref(mixed_type_string); +  return mixed_type_string; +  }    while((index_type->type == PIKE_T_NAME) ||    (index_type->type == PIKE_T_ATTRIBUTE) ||    (index_type->type == T_ASSIGN) ||
9684:    struct pike_type *index_type,    node *n)   { +  if (!type) return 1;    switch(type->type)    {    case T_OR: