From: Jérémie Astor Date: Sat, 9 May 2020 19:25:08 +0000 (+0200) Subject: :art: Improve cyclic decl message X-Git-Tag: nightly~1613 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=155c06f374b13cb84d5feb9c06bf327d4d3cfb21;p=gwion.git :art: Improve cyclic decl message --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index c3325ba2..3a6d978f 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -13,7 +13,7 @@ ANN static inline m_bool type_cyclic(const Env env, const Type t, const Type_Dec Type parent = t->e->parent; while(parent) { if(parent == env->class_def) - ERR_B(td_pos(td), _("%s declared inside %s\n. (make it a ref ?)"), t->name, t == env->class_def ? "itself" : env->class_def->name); + ERR_B(td_pos(td), _("%s declared inside %s\n."), t->name, t == env->class_def ? "itself" : env->class_def->name); parent = parent->e->parent; } return GW_OK;