solidity/test/libsolidity/syntaxTests/functionTypes/delete_function_type.sol

16 lines
376 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
contract C {
function(uint) external returns (uint) x;
function(uint) internal returns (uint) y;
function f() public {
delete x;
function(uint) internal returns (uint) a = y;
2018-03-16 10:20:06 +00:00
delete a;
delete y;
function() internal c = f;
2018-03-16 10:20:06 +00:00
delete c;
function(uint) internal returns (uint) g;
delete g;
}
}
2018-03-16 10:33:05 +00:00
// ----