mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
YulInterpreter: Fix wrong context passed to called function
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
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:
|
||||
Reference in New Issue
Block a user