소스 검색

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;