瀏覽代碼

fix warning [skip ci]

Dan Korostelev 7 年之前
父節點
當前提交
5b1a06a125
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;