Selaa lähdekoodia

[cs] don't mark static methods `final` when parsing dlls

Aleksandr Kuzmenko 5 vuotta sitten
vanhempi
commit
b51adecd2f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/codegen/dotnet.ml

+ 1 - 1
src/codegen/dotnet.ml

@@ -414,7 +414,7 @@ let convert_ilmethod ctx p m is_explicit_impl =
 		Printf.printf "\t%smethod %s : %s\n" (if !is_static then "static " else "") cff_name (IlMetaDebug.ilsig_s m.msig.ssig);
 
 	let acc = match is_final with
-		| None | Some true when not force_check ->
+		| None | Some true when not force_check && not !is_static ->
 			(AFinal,null_pos) :: acc
 		| _ ->
 			acc