瀏覽代碼

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 =