Преглед изворни кода

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 =