mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
201 B
Solidity
13 lines
201 B
Solidity
contract A {
|
|
uint public x;
|
|
receive () external payable { ++x; }
|
|
}
|
|
// ----
|
|
// x() -> 0
|
|
// ()
|
|
// x() -> 1
|
|
// (), 1 ether
|
|
// x() -> 2
|
|
// (): hex"00" -> FAILURE
|
|
// (), 1 ether: hex"00" -> FAILURE
|