|
@@ -947,7 +947,10 @@ let generate_field ctx static f =
|
|
|
| _ -> ()
|
|
|
) f.cf_meta;
|
|
|
let public = f.cf_public || Hashtbl.mem ctx.get_sets (f.cf_name,static) || (f.cf_name = "main" && static)
|
|
|
- || f.cf_name = "resolve" || Ast.Meta.has Ast.Meta.Public f.cf_meta || (match ctx.curclass.cl_kind with KAbstractImpl _ -> Ast.Meta.has Ast.Meta.Op f.cf_meta | _ -> false) in
|
|
|
+ || f.cf_name = "resolve" || Ast.Meta.has Ast.Meta.Public f.cf_meta
|
|
|
+ (* consider all abstract methods public to avoid issues with inlined private access *)
|
|
|
+ || (match ctx.curclass.cl_kind with KAbstractImpl _ -> true | _ -> false)
|
|
|
+ in
|
|
|
let rights = (if static then "static " else "") ^ (if public then "public" else "protected") in
|
|
|
let p = ctx.curclass.cl_pos in
|
|
|
match f.cf_expr, f.cf_kind with
|