Static Analyzer for Solidity
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.
 
 
 
 
slither/tests/detectors/reused-constructor/reused_base_constructor.sol

37 lines
438 B

contract A{
uint num = 5;
constructor(uint x) public{
num += x;
}
}
contract B is A{
constructor(uint y) A(y * 3) public{
}
}
contract C is B{
constructor(uint y) A(y * 2) public{
}
}
contract D is B(1), C(1) {
constructor() B(3) C(2) public {
}
}
contract E is B(1), C, D() {
constructor() B(1) C(2) D() public {
}
}
contract F is B {
constructor() A(1) public {
}
}