Jelajahi Sumber

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

Aleksandr Kuzmenko 5 tahun lalu
induk
melakukan
b51adecd2f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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