소스 검색

dodge c# static type param problem

see #11527
Simon Krajewski 1 년 전
부모
커밋
706f607ed9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/typing/typeloadFields.ml

+ 1 - 1
src/typing/typeloadFields.ml

@@ -636,7 +636,7 @@ let create_typer_context_for_field ctx cctx fctx cff =
 		monomorphs = {
 			perfunction = [];
 		};
-		type_params = if fctx.is_static && not fctx.is_abstract_member then [] else ctx.type_params;
+		type_params = if fctx.is_static && not fctx.is_abstract_member && not (Meta.has Meta.LibType cctx.tclass.cl_meta) (* TODO: remove this *) then [] else ctx.type_params;
 	} in
 
 	let c = cctx.tclass in