Explorar o código

[cs] Filter all non-static fields from enums

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

+ 1 - 0
gencs.ml

@@ -3459,6 +3459,7 @@ let convert_ilenum ctx p ?(is_flag=false) ilcls =
 	let data = ref [] in
 	List.iter (fun f -> match f.fname with
 		| "value__" -> ()
+		| _ when not (List.mem CStatic f.fflags.ff_contract) -> ()
 		| _ ->
 			let meta, const = match f.fconstant with
 				| Some IChar i