Explorar o código

[cs] do not set override on constructors

Cauê Waneck %!s(int64=11) %!d(string=hai) anos
pai
achega
e4a113f9ce
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      gencs.ml

+ 1 - 0
gencs.ml

@@ -3101,6 +3101,7 @@ let convert_ilmethod ctx p m is_explicit_impl =
 	in
 	let acc = match m.moverride with
 		| None -> acc
+		| _ when cff_name = "new" -> acc
 		| Some (path,s) -> match lookup_ilclass ctx.nstd ctx.ncom path with
 			| Some ilcls when not (List.mem SInterface ilcls.cflags.tdf_semantics) ->
 				AOverride :: acc