ERR_N(pos, _("can't %s '%s' to '%s'"), action, l->name, r->name);
return r->e->parent;
}
- if(nonnull_check(l, r))
- ERR_N(pos, _("can't %s '%s' to '%s'"), action, l->name, r->name);
+/* if(nonnull_check(l, r))
+ ERR_N(pos, _("can't %s '%s' to '%s'"), action, l->name, r->name); */
if(l != env->gwion->type[et_null] && isa(l, r) < 0)
ERR_N(pos, _("can't %s '%s' to '%s'"), action, l->name, r->name);
return r;
env_err(env, exp_self(member)->pos,
_("class '%s' has no member '%s'"), the_base->name, str);
if(member->t_base->nspc)
- did_you_mean_type(member->t_base, str);
+ did_you_mean_type(the_base, str);
return NULL;
}
CHECK_BO(not_from_owner_class(env, the_base, value, exp_self(member)->pos))
struct scope_iter iter = { nspc->info->value, 0, 0 };
Value value;
while(scope_iter(&iter, &value) > 0) {
- if(strcmp(name, value->name))
+ if(!strcmp(name, value->name))
continue;
if(wagner_fisher(name, value->name))
vector_add(v, (vtype)value->name);