ev.sol 438 B

1234567891011121314151617
  1. contract C {
  2. event E1(int);
  3. event E1(int, int);
  4. function e() public {
  5. emit E1();
  6. }
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 6:3-12: event type 'E1' has 1 fields, 0 provided
  10. // note 2:8-10: definition of E1
  11. // note 2:2-15: candidate event
  12. // error: 6:3-12: event type 'E1' has 2 fields, 0 provided
  13. // note 3:8-10: definition of E1
  14. // note 3:2-20: candidate event
  15. // error: 6:3-12: cannot find event with matching signature