solidity/test/libsolidity/semanticTests/extracted/calling_uninitialized_function.sol
2020-03-18 11:56:43 -05:00

18 lines
380 B
Solidity

contract C {
function intern() public returns (uint256) {
function (uint) internal returns (uint) x;
x(2);
return 7;
}
function extern() public returns (uint256) {
function (uint) external returns (uint) x;
x(2);
return 7;
}
}
// ----
// intern() -> FAILURE # This should throw exceptions #
// extern() -> FAILURE