contract A { modifier m() virtual { _; } } abstract contract B { modifier m() virtual; } contract C is A, B { modifier m() override(A, B) { _; } function f() m public {} } // ----