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

17 lines
273 B
Solidity

contract C {
function a() public returns (uint256) {
return 7;
}
function test() public returns (uint256) {
function() returns (uint256) y = a;
delete y;
y();
}
}
// ====
// compileViaYul: also
// ----
// test() -> FAILURE