소스 검색

prevent closure access of qualified macros functions (close #2757)

Nicolas Cannasse 11 년 전
부모
커밋
95bbd5b90d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2089,7 +2089,7 @@ and type_access ctx e p mode =
 				resume := false;
 				resume := false;
 				f
 				f
 			) e path in
 			) e path in
-			if !force then ignore(e MGet);
+			if !force then ignore(e MCall); (* not necessarily a call, but prevent #2602 among others *)
 			e
 			e
 		in
 		in
 		let type_path path =
 		let type_path path =