39 - Dangerous shadowing
Local variables, state variables, functions, modifiers, or events with names that shadow (i.e. override
) builtin Solidity symbols e.g. now
or other declarations from the current scope are misleading and may lead to unexpected usages and behavior. (see here)
- Solidity Built-in Shadowing
- Built-in: now, assert, etc.
- Names: Variables/Functions/Modifiers
- Override Behavior -> Dangerous/Unexpected