소스 검색

[java] reserve all top-level symbols to avoid package shadowing by local vars (#9394)

Aleksandr Kuzmenko 5 년 전
부모
커밋
ab39d7af22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/context/common.ml

+ 1 - 1
src/context/common.ml

@@ -540,7 +540,7 @@ let get_config com =
 				else
 					{
 						vs_scope = FunctionScope;
-						vs_flags = [NoShadowing; ReserveCurrentTopLevelSymbol; ReserveNames(["_"])];
+						vs_flags = [NoShadowing; ReserveAllTopLevelSymbols; ReserveNames(["_"])];
 					}
 		}
 	| Python ->