Code coverage for Solidity smart-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
solidity-coverage/test/sources/solidity/contracts/statements/multi-contract-diamond.sol

36 lines
423 B

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
contract A {
uint valA;
function setA() public {
valA = 1;
}
}
contract B is A {
uint valB;
function setB() public {
valB = 1;
}
}
contract C is A {
uint valC;
function setC() public {
valC = 1;
}
}
contract D is B, C {
uint valD;
function setD() public {
valD = 1;
}
}