Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 871 Bytes

Free function redefinition.md

File metadata and controls

18 lines (17 loc) · 871 Bytes

The compiler does not flag an error when two or more free functions (functions outside of a contract) with the same name and parameter types are defined in a source unit or when an imported free function alias shadows another free function with a different name but identical parameter types. This is due to a compiler bug introduced in v0.7.1 and fixed in v0.7.2. (see here)


Slide Screenshot

094.jpg


Slide Text

  • Free Functions Redefinition
  • Free Functions -> Outside Contract
  • Same Name/Parameters -> No Compiler Error
  • Compiler Bug -> Fixed
  • solc 0.7.1 -> 0.7.2

References


Tags