Explorar o código

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

Aleksandr Kuzmenko %!s(int64=5) %!d(string=hai) anos
pai
achega
ab39d7af22
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ->