function_destructing_arguments.sol 357 B

1234567891011121314
  1. contract foo {
  2. function bar1(uint32 x, bool y) public returns (address, bytes32) {
  3. return (address(3), hex"01020304");
  4. }
  5. function bar2(uint32 x, bool y) public returns (bool) {
  6. return !y;
  7. }
  8. function test() public {
  9. (address f1, bytes32 f2) = bar1(102, false);
  10. bool f3 = bar2({x: 255, y: true});
  11. }
  12. }