mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
225 B
Solidity
8 lines
225 B
Solidity
contract receiver { function pay() payable public {} }
|
|
contract test {
|
|
function f() public { (new receiver()).pay{value: 10}(); }
|
|
receiver r = new receiver();
|
|
function h() public { r.pay{value: 10}(); }
|
|
}
|
|
// ----
|