소스 검색

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

Aleksandr Kuzmenko 5 년 전
부모
커밋
b51adecd2f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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