Explorar o código

[cs] Generate fields in the correct order

Cauê Waneck %!s(int64=10) %!d(string=hai) anos
pai
achega
27f465ad7a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gencs.ml

+ 1 - 1
gencs.ml

@@ -2431,7 +2431,7 @@ let configure gen =
 			let evts = List.map (fun(_,v) -> !v) events in
 			let ret = List.map (fun (_,v) -> !v) !props in
 			let ret = List.filter (function | (_,_,None,None) -> false | _ -> true) ret in
-			evts, ret, !nonprops
+			evts, ret, List.rev !nonprops
 		in
 
 		let fevents, fprops, fnonprops = partition cl cl.cl_ordered_fields in