signatures_03.sol 351 B

1234567891011121314
  1. event foo(bool a, int32 b);
  2. contract c {
  3. event foo(bool x, int y);
  4. function f() public {
  5. emit foo(true, 1);
  6. }
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 8:17-34: emit can be resolved to multiple events
  10. // note 5:19-22: candidate event
  11. // note 2:15-18: candidate event