test_override.sol 318 B

12345678910
  1. contract base {
  2. function foo(uint64 a) override override private returns (uint64) {
  3. return a + 102;
  4. }
  5. }
  6. // ---- Expect: diagnostics ----
  7. // error: 3:45-53: function redeclared 'override'
  8. // note 3:36-44: location of previous declaration of 'override'