mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
440 B
Solidity
13 lines
440 B
Solidity
contract A {
|
|
modifier m() virtual { _; }
|
|
}
|
|
abstract contract B {
|
|
modifier m() virtual;
|
|
}
|
|
contract C is A, B {
|
|
modifier m() override(A, B) { _; }
|
|
function f() B.m public {}
|
|
}
|
|
// ----
|
|
// TypeError 1835: (174-177='B.m'): Cannot call unimplemented modifier. The modifier has no implementation in the referenced contract. Refer to it by its unqualified name if you want to call the implementation from the most derived contract.
|