mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
279 B
Solidity
12 lines
279 B
Solidity
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.
|