|
@@ -483,7 +483,7 @@ let make_macro_api ctx mctx p =
|
|
|
add false ctx;
|
|
|
(* if we are adding a class which has a macro field, we also have to add it to the macro context (issue #1497) *)
|
|
|
if not ctx.com.is_macro_context then match tdef with
|
|
|
- | EClass c when List.exists (fun cff -> (Meta.has Meta.Macro cff.cff_meta || List.mem_assoc AMacro cff.cff_access)) c.d_data ->
|
|
|
+ | EClass c when List.exists (fun cff -> (List.mem_assoc AMacro cff.cff_access)) c.d_data ->
|
|
|
add true mctx
|
|
|
| _ ->
|
|
|
()
|