solidity/test/libsolidity/syntaxTests/modifiers/modifier_abstract_override.sol

12 lines
279 B
Solidity
Raw Normal View History

contract A {
modifier m() virtual { _; }
}
abstract contract B is A {
modifier m() virtual override;
}
contract C is B {
function f() m public {}
}
// ----
// TypeError 4593: (78-108): Overriding an implemented modifier with an unimplemented modifier is not allowed.