From: fennecdjay Date: Sun, 1 Sep 2019 07:44:41 +0000 (+0200) Subject: :art: error message X-Git-Tag: nightly~2250 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=20274122f88f52420627c4ea8616bddae5df6063;p=gwion.git :art: error message --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index bc5278b6..c32a0ea4 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -32,7 +32,7 @@ ANN static m_bool type_recursive(const Env env, const Type_Decl *td, const Type for(m_uint i = 0; i < vector_size(&t->e->contains); ++i) { if(env->class_def == (Type)vector_at(&t->e->contains, i) && !GET_FLAG(td, ref)) ERR_B(td_pos(td), _("%s declared inside %s\n. (make it a ref ?)"), - t, t == env->class_def ? "itself" : env->class_def->name); + t->name, t == env->class_def ? "itself" : env->class_def->name); } } }