From 2235cab9102f7f91e7d4e974cbb6ab5f72fbb815 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 30 Mar 2022 21:49:51 +0200 Subject: [PATCH] :bug: Fix unknown enum access --- src/lib/object_op.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } -- 2.43.0