소스 검색

Forward metadata for static local vars

Allow things like @:persistent to work with static locals
Rudy Ges 2 년 전
부모
커밋
62bdf35ee8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/filters/filters.ml

+ 1 - 0
src/filters/filters.ml

@@ -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 ->
 				()