mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
502 B
Solidity
26 lines
502 B
Solidity
|
contract C {
|
||
|
function f() public {
|
||
|
function() internal returns (uint) _f;
|
||
|
_f();
|
||
|
}
|
||
|
function g() public {
|
||
|
function() external returns (uint) _g;
|
||
|
_g();
|
||
|
}
|
||
|
function h1() internal returns (function() internal returns (uint) _h) {}
|
||
|
function h2() public {
|
||
|
h1()();
|
||
|
}
|
||
|
function k1() internal returns (function() external returns (uint) _k) {}
|
||
|
function k2() public {
|
||
|
k1()();
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// f() -> FAILURE
|
||
|
// g() -> FAILURE
|
||
|
// h2() -> FAILURE
|
||
|
// k2() -> FAILURE
|