فهرست منبع

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;
 				f
 			) 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
 		in
 		let type_path path =