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

12 lines
249 B
Solidity
Raw Normal View History

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.