YulInterpreter: Fix wrong context passed to called function

This commit is contained in:
Mathias Baumann
2019-08-12 17:12:53 +02:00
parent cbac3a4208
commit ccfcee5b80
3 changed files with 47 additions and 5 deletions
@@ -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: