소스 검색

fixed issue #373

Nicolas Cannasse 14 년 전
부모
커밋
3f1c36055b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -336,7 +336,7 @@ let s_kind = function
 		| MethMacro -> "macro method"
 
 let rec is_parent csup c =
-	if c == csup then
+	if c == csup || List.exists (fun (i,_) -> i == csup) c.cl_implements then
 		true
 	else match c.cl_super with
 		| None -> false