mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
345 B
Plaintext
20 lines
345 B
Plaintext
|
{
|
||
|
function f()
|
||
|
{
|
||
|
// Variable declaration does not shadow namesake function declaration
|
||
|
// because latter not visible here.
|
||
|
let shadow_id
|
||
|
}
|
||
|
{
|
||
|
// Function named `shadow_id` is in scope now.
|
||
|
f()
|
||
|
function shadow_id() {}
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// EVMVersion: >=constantinople
|
||
|
// ----
|
||
|
// Trace:
|
||
|
// Memory dump:
|
||
|
// Storage dump:
|