solidity/test/libsolidity/semanticTests/functionCall/call_function_returning_nothing_via_pointer.sol

20 lines
294 B
Solidity

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