From: Jérémie Astor Date: Wed, 30 Mar 2022 19:49:51 +0000 (+0200) Subject: :bug: Fix unknown enum access X-Git-Tag: nightly~346 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2235cab9102f7f91e7d4e974cbb6ab5f72fbb815;p=gwion.git :bug: Fix unknown enum access --- diff --git a/src/lib/object_op.c b/src/lib/object_op.c index fb7dba45..36ab071b 100644 --- a/src/lib/object_op.c +++ b/src/lib/object_op.c @@ -183,8 +183,7 @@ OP_CHECK(opck_object_dot) { _("keyword 'this' must be associated with object instance...")); const Value value = get_value(env, member, the_base); if (!value) { - if(!tflag(the_base, tflag_check) && env->class_def != the_base) { - set_tflag(the_base, tflag_cdef); + if(tflag(the_base, tflag_cdef) && !tflag(the_base, tflag_check) && env->class_def != the_base) { CHECK_BN(ensure_traverse(env, the_base)); return check_exp(env, exp_self(member)); }