abstract contract A { } abstract contract X is A { modifier f() override { _; } } // ---- // TypeError 7792: (65-73='override'): Modifier has override specified but does not override anything.