mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
249 B
Solidity
12 lines
249 B
Solidity
contract A {}
|
|
contract C is A {
|
|
modifier m() { _; }
|
|
}
|
|
contract D is A {
|
|
function f() C.m public {
|
|
}
|
|
}
|
|
contract T is D, C {}
|
|
// ----
|
|
// TypeError 9428: (93-96): Can only use modifiers defined in the current contract or in base contracts.
|