Răsfoiți Sursa

fix CTIntersection reification (closes #9404)

Aleksandr Kuzmenko 5 ani în urmă
părinte
comite
c2f48019ba
2 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 6 0
      extra/CHANGES.txt
  2. 1 1
      src/syntax/reification.ml

+ 6 - 0
extra/CHANGES.txt

@@ -1,3 +1,9 @@
+2020-XX-XX 4.1.2
+
+	Bugfixes:
+
+	macro : fixed type intersection syntax in macro reification (#9404)
+
 2020-22-05 4.1.1
 
 	New features:

+ 1 - 1
src/syntax/reification.ml

@@ -139,7 +139,7 @@ let reify in_macro =
 		| CTExtend (tl,fields) -> ct "TExtend" [to_array to_tpath tl p; to_array to_cfield fields p]
 		| CTOptional t -> ct "TOptional" [to_type_hint t p]
 		| CTNamed (n,t) -> ct "TNamed" [to_placed_name n; to_type_hint t p]
-		| CTIntersection tl -> ct "TIntersection" (List.map (fun t -> to_ctype t p) tl)
+		| CTIntersection tl -> ct "TIntersection" [to_array to_ctype tl p]
 	and to_type_hint (t,p) _ =
 		(* to_obj ["type",to_ctype t p;"pos",to_pos p] p *)
 		to_ctype (t,p) p