Browse Source

[cs] Also add __typeof__ to the list of special vars

Cauê Waneck 10 năm trước cách đây
mục cha
commit
d0a8d8a02f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      gencommon.ml

+ 1 - 1
gencommon.ml

@@ -9704,7 +9704,7 @@ struct
 	let traverse gen (change_expr:texpr->module_type->texpr) =
 		let rec run e =
 			match e.eexpr with
-					| TCall( ({ eexpr = TLocal({ v_name = ("__is__" | "__as__") } as v) } as local), calls ) when Hashtbl.mem gen.gspecial_vars v.v_name ->
+					| TCall( ({ eexpr = TLocal({ v_name = ("__is__" | "__as__" | "__typeof__") } as v) } as local), calls ) when Hashtbl.mem gen.gspecial_vars v.v_name ->
 						{ e with eexpr = TCall(local, List.map (fun e ->
 							match e.eexpr with
 							| TTypeExpr _ -> e