878
877
let t = Function (List.map (fun (_,t) -> t_opt ctx p t) f.fargs , ret_opt ctx p f) in
879
878
if f.fname = snd clctx.path then begin
880
879
if f.ftype <> None then error (Custom "Constructor return type should not be specified") p;
881
881
match clctx.constructor with
882
882
| None -> clctx.constructor <- Some { f_name = f.fname; f_type = t; f_static = IsMember; f_public = f.fpublic; f_pos = null_pos }
883
883
| Some _ -> error (Custom "Duplicate constructor") p;