IRGenerationContext::internalDispatch(): Fix code generated when the function called via pointer does not return anything

This commit is contained in:
Kamil Śliwak
2020-04-23 21:16:41 +02:00
parent aa071af476
commit e65a5a562e
2 changed files with 21 additions and 1 deletions
@@ -0,0 +1,19 @@
contract test {
bool public flag = false;
function f0() public {
flag = true;
}
function f() public returns (bool) {
function() internal x = f0;
x();
return flag;
}
}
// ====
// compileViaYul: also
// ----
// f() -> true
// flag() -> true