Explorar o código

Merge pull request #2347 from nadako/1804_macro_return_exprof

translate macro return type from ExprOf to Expr as well (really closes #1804)
Nicolas Cannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
4728ae207a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      typeload.ml

+ 1 - 1
typeload.ml

@@ -1671,7 +1671,7 @@ let init_class ctx c p context_init herits fields =
 					in
 					{
 						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_expr = fd.f_expr;
 					}