mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
382 B
Solidity
18 lines
382 B
Solidity
|
contract C {
|
||
|
function f() public returns (uint) {
|
||
|
return 1;
|
||
|
}
|
||
|
function g(uint x, uint y) public returns (uint) {
|
||
|
return x - y;
|
||
|
}
|
||
|
function h() public payable returns (uint) {
|
||
|
return f();
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f() -> 1
|
||
|
// g(uint256,uint256): 1, -2 -> 3
|
||
|
// h(), 1 ether -> 1
|
||
|
// j() -> FAILURE
|
||
|
// i() # Does not exist. # -> FAILURE # Reverts. #
|