Browse Source

translate macro return type from ExprOf to Expr as well (really closes #1804)

Dan Korostelev 11 years ago
parent
commit
cf140e8ea7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typeload.ml

+ 1 - 1
typeload.ml

@@ -1671,7 +1671,7 @@ let init_class ctx c p context_init herits fields =
 					in
 					in
 					{
 					{
 						f_params = fd.f_params;
 						f_params = fd.f_params;
-						f_type = (match fd.f_type with None -> Some texpr | t -> t);
+						f_type = (match fd.f_type with None -> Some texpr | Some t -> no_expr_of t);
 						f_args = List.map (fun (a,o,t,e) -> a,o,(match t with None -> Some texpr | Some t -> no_expr_of t),e) fd.f_args;
 						f_args = List.map (fun (a,o,t,e) -> a,o,(match t with None -> Some texpr | Some t -> no_expr_of t),e) fd.f_args;
 						f_expr = fd.f_expr;
 						f_expr = fd.f_expr;
 					}
 					}