mirror of https://github.com/crytic/slither
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.
37 lines
438 B
37 lines
438 B
4 years ago
|
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 {
|
||
|
|
||
|
}
|
||
|
}
|