solidity/test/libsolidity/syntaxTests/modifiers/non-virtual_modifier_override.sol
2019-12-09 18:41:39 +01:00

5 lines
205 B
Solidity

contract A { modifier mod(uint a) { _; } }
contract B is A { modifier mod(uint a) override { _; } }
// ----
// TypeError: (13-40): Trying to override non-virtual modifier. Did you forget to add "virtual"?