فهرست منبع

[hxb] fix anon field reading

Rudy Ges 2 سال پیش
والد
کامیت
10a237d322
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/compiler/hxb/hxbReader.ml

+ 1 - 1
src/compiler/hxb/hxbReader.ml

@@ -1284,7 +1284,7 @@ class hxb_reader
 			let an = anons.(i) in
 			let read_fields () =
 				let fields = self#read_list (fun () -> self#read_class_field' m) in
-				List.iter (fun cf -> ignore(PMap.add cf.cf_name cf an.a_fields)) fields
+				List.iter (fun cf -> an.a_fields <- PMap.add cf.cf_name cf an.a_fields;) fields;
 			in
 
 			begin match self#read_u8 with