Skip to content

Commit

Permalink
Forward metadata for static local vars
Browse files Browse the repository at this point in the history
Allow things like @:persistent to work with static locals
  • Loading branch information
kLabz committed Sep 7, 2023
1 parent 4e93c15 commit 62bdf35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filters/filters.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module LocalStatic = struct
raise_typing_error ~depth:1 "Conflicting field was found here" cf.cf_name_pos;
with Not_found ->
let cf = mk_field name ~static:true v.v_type v.v_pos v.v_pos in
cf.cf_meta <- v.v_meta;
begin match eo with
| None ->
()
Expand Down

0 comments on commit 62bdf35

Please sign in to comment.