garbage_function_args.sol 497 B

123456789101112131415161718192021222324
  1. contract c {
  2. function g(address) public {
  3. require(rubbish, "rubbish n'existe pas!");
  4. }
  5. function g(bytes x) public {
  6. x.readUint8(meh);
  7. }
  8. function g() public {
  9. g({x: foo>1});
  10. }
  11. function g(int) public {
  12. this.g(oo);
  13. }
  14. function g(bool) public {
  15. this.g({x: foo>1});
  16. }
  17. }
  18. // ---- Expect: diagnostics ----
  19. // error: 3:11-18: 'rubbish' not found
  20. // error: 6:15-18: 'meh' not found
  21. // error: 9:9-12: 'foo' not found
  22. // error: 12:10-12: 'oo' not found
  23. // error: 15:14-17: 'foo' not found