solidity/test/libsolidity/syntaxTests/inheritance/override/override_shared_base.sol

16 lines
304 B
Solidity
Raw Normal View History

2019-09-16 12:33:43 +00:00
contract I {
function set() public {}
}
contract A is I {
uint a;
function set() public override { a = 1; super.set(); a = 2; }
}
contract B is I {
uint b;
function set() public override { b = 1; super.set(); b = 2; }
}
contract X is A, B {
function set() public override(A, B) { super.set(); }
}