Commit a3b14f76 authored by Benoît Minisini's avatar Benoît Minisini

Fix the declaration of static properties using USE.

[COMPILER]
* BUG: Fix the declaration of static properties using USE.
parent 630d2f4f
......@@ -912,9 +912,12 @@ static int check_one_property_func(CLASS *class, PROPERTY *prop, bool write)
decl.type = prop->type;
TYPE_clear_flag(&decl.type, TF_PUBLIC);
}
decl.line = prop->line;
TYPE_set_kind(&decl.type, TK_FUNCTION);
if (is_static)
TYPE_set_flag(&decl.type, TF_STATIC);
CLASS_add_function(JOB->class, &decl);
JOB->nobreak = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment