Browse Source

fix warning [skip ci]

Dan Korostelev 7 years ago
parent
commit
5b1a06a125
1 changed files with 1 additions and 1 deletions
  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 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
 			let v' = PMap.find n ctx.locals in
 			ctx.com.warning "This variable shadows a previously declared variable" p;