mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
294 B
Solidity
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
|