Browse Source

fixed constructor return type

Nicolas Cannasse 18 years ago
parent
commit
c85f5de385
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2363,7 +2363,7 @@ let init_class ctx c p herits fields =
 			let eargs = List.map (fun (n,_,t) -> mk (TLocal n) t p) args in
 			let func = {
 				tf_args = args;
-				tf_type = t;
+				tf_type = t_void ctx;
 				tf_expr = mk (TCall (mk (TConst TSuper) (TInst (csuper,cparams)) p,eargs)) r p;
 			} in
 			c.cl_constructor <- Some {