fmt.sol 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // config: line_length = 120
  2. contract FunctionCall {
  3. function foo() public pure {
  4. bar(1111111111111111111111111111111111111111111111111111, 111111111111111111111111111111111111111111111111111);
  5. bar(1111111111111111111111111111111111111111111111111112, 1111111111111111111111111111111111111111111111111112);
  6. bar(1111111111111111111111111111111111111111111111111113, 11111111111111111111111111111111111111111111111111113); // the semicolon is not considered when determining line break
  7. bar(
  8. 1111111111111111111111111111111111111111111111111114, 111111111111111111111111111111111111111111111111111114
  9. );
  10. bar(
  11. 111111111111111111111111111111111115,
  12. 11111111111111111111111111111111115,
  13. 11111111111111111111111111111111115
  14. );
  15. bar(
  16. 111111111111111111111111111111111111111111111111111116,
  17. 111111111111111111111111111111111111111111111111111116
  18. );
  19. bar(
  20. 111111111111111111111111111111111111111111111111111117,
  21. 1111111111111111111111111111111111111111111111111111117
  22. );
  23. }
  24. function bar(uint256, uint256) private pure {
  25. return;
  26. }
  27. }
  28. function a(uint256 foo) {
  29. foo;
  30. MyContract c = new MyContract(address(0), hex"beef");
  31. }
  32. function b() {
  33. a({foo: 5});
  34. }
  35. contract MyContract {
  36. constructor(address arg, bytes memory data) {}
  37. }