function_arguments.sol 260 B

1234567891011121314
  1. contract foo {
  2. function bar(uint32 x, bool y) public returns (uint32) {
  3. if (y) {
  4. return 2;
  5. }
  6. return 3;
  7. }
  8. function test() public {
  9. uint32 a = bar(102, false);
  10. a = bar({y: true, x: 302});
  11. }
  12. }