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

18 lines
451 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;
var a = y;
delete a;
delete y;
var c = f;
delete c;
function(uint) internal returns (uint) g;
delete g;
}
}
2018-03-16 10:33:05 +00:00
// ----
// Warning: (157-162): Use of the "var" keyword is deprecated.
// Warning: (212-217): Use of the "var" keyword is deprecated.