mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Print warning for unnamed return parameters and no return statement
This commit is contained in:
@@ -424,6 +424,8 @@ operations as long as there is enough gas passed on to it.
|
||||
// If someone sends Ether to that contract, the receive function in TestPayable will be called.
|
||||
require(address(test).send(2 ether));
|
||||
// results in test.x becoming == 2 and test.y becoming 2 ether.
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user