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/function-0.4.16.sol

43 lines
1021 B

4 years ago
contract C1 {
// non-payable constructor
function C1() public {}
// non-payable fallback
function() public {}
}
contract C2 {
// payable constructor
function C2() public payable {}
// payable fallback
function() public payable {}
}
contract C3 {
// internal constructor
function C3() internal {}
modifier modifierNoArgs() { _; }
modifier modifierWithArgs(uint a) { _; }
function f() public modifierNoArgs modifierWithArgs(block.timestamp) {}
}
contract C4 {
function hasArgs(uint, uint) {}
function hasReturns() public returns (uint) {}
function hasArgsAndReturns(uint a, uint b) public returns (uint c) {}
}
contract C5 {
function constantFunc() constant {}
function payableFunc() payable {}
function externalFunc() external {}
function publicFunc() public {}
function internalFunc() internal {}
function privateFunc() private {}
function pureFunc() pure {}
function viewFunc() view {}
function abstractFunc();
}