solidity/test/libsolidity/syntaxTests/inheritance/override/override_shared_base.sol
2019-11-14 11:49:39 +01:00

16 lines
328 B
Solidity

contract I {
function set() public virtual {}
}
contract A is I {
uint a;
function set() public virtual override { a = 1; super.set(); a = 2; }
}
contract B is I {
uint b;
function set() public virtual override { b = 1; super.set(); b = 2; }
}
contract X is A, B {
function set() public override(A, B) { super.set(); }
}