|
@@ -1035,6 +1035,14 @@ let create_method (ctx,cctx,fctx) c f fd p =
|
|
|
| Meta.AstSource,[] -> (m,(match fd.f_expr with None -> [] | Some e -> [e]),p)
|
|
|
| _ -> m,el,p
|
|
|
) cf.cf_meta;
|
|
|
+ Option.may (fun cf_parent ->
|
|
|
+ if not (Meta.has Meta.Native cf.cf_meta) then
|
|
|
+ try
|
|
|
+ let native_meta = Meta.get Meta.Native cf_parent.cf_meta in
|
|
|
+ cf.cf_meta <- native_meta :: cf.cf_meta;
|
|
|
+ with Not_found ->
|
|
|
+ ()
|
|
|
+ ) parent;
|
|
|
generate_value_meta ctx.com (Some c) (fun meta -> cf.cf_meta <- meta :: cf.cf_meta) fd.f_args;
|
|
|
check_abstract (ctx,cctx,fctx) c cf fd t ret p;
|
|
|
init_meta_overloads ctx (Some c) cf;
|