Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
slither/tests/ast-parsing/return-all.sol

27 lines
532 B

contract C {
function returnConstant() public returns (uint) {
return 0;
}
function returnVariable() public returns (uint) {
uint x = 0;
return x;
}
function returnTuple() public returns (uint, uint) {
uint x = 0;
uint y = 0;
return (x, y);
}
function returnTernary() public returns (uint) {
uint x = 0;
return x == 0 ? 1 : 2;
}
mapping(uint => uint) m;
function returnDelete() public {
return delete(m[0]);
}
}