Look for library functions in the current scope

pull/1684/head
Simone 1 year ago
parent a6fb92f179
commit 3f1db7af77
  1. 2
      slither/solc_parsing/declarations/using_for_top_level.py

@ -111,7 +111,7 @@ class UsingForTopLevelSolc(CallerContextExpression): # pylint: disable=too-few-
def _analyze_operator( def _analyze_operator(
self, operator: str, function_name: str, type_name: TypeAliasTopLevel self, operator: str, function_name: str, type_name: TypeAliasTopLevel
) -> None: ) -> None:
for tl_function in self.compilation_unit.functions_top_level: for tl_function in self._using_for.file_scope.functions:
# The library function is bound to the first parameter's type # The library function is bound to the first parameter's type
if ( if (
tl_function.name == function_name tl_function.name == function_name

Loading…
Cancel
Save