if(value)
ERR_B(var->pos,
_("in class '%s': '%s' has already been defined in parent class '%s' ..."),
- env->class_def->name, s_name(var->xid), value->owner_class->name)
+ env->class_def->name, s_name(var->xid),
+ value->owner_class ? value->owner_class->name : "?")
return GW_OK;
}
ERR_O(array->exp->pos, _("tuple subscripts too big"))
const Type type = (Type)vector_at(&array->type->e->tuple->types, idx);
if(type == t_undefined)
- ERR_O(array->exp->pos, _("tuple subscripts is undefined"))
+ ERR_O(array->exp->pos, _("tuple subscripts is undefined at index %lu"),
+ idx)
if(!array->exp->next)
return type;
struct Array_Sub_ next = { array->exp->next, type, array->depth - 1 };