Procházet zdrojové kódy

fix warning [skip ci]

Dan Korostelev před 7 roky
rodič
revize
5b1a06a125
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/context/typecore.ml

+ 1 - 1
src/context/typecore.ml

@@ -207,7 +207,7 @@ let save_locals ctx =
 
 
 let add_local ctx n t p =
 let add_local ctx n t p =
 	let v = alloc_var n t p in
 	let v = alloc_var n t p in
-	if Define.defined ctx.com.defines WarnVarShadowing then begin
+	if Define.defined ctx.com.defines Define.WarnVarShadowing then begin
 		try
 		try
 			let v' = PMap.find n ctx.locals in
 			let v' = PMap.find n ctx.locals in
 			ctx.com.warning "This variable shadows a previously declared variable" p;
 			ctx.com.warning "This variable shadows a previously declared variable" p;