2019-09-26 14:12:27 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
contract F {
|
|
|
|
uint a;
|
|
|
|
constructor(uint x) public {
|
|
|
|
a = x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 20:44:06 +00:00
|
|
|
abstract contract E is F {}
|
|
|
|
abstract contract D is E {
|
2019-09-26 14:12:27 +00:00
|
|
|
constructor() public {
|
|
|
|
a = 3;
|
|
|
|
}
|
|
|
|
}
|
2019-12-03 20:44:06 +00:00
|
|
|
abstract contract C is D {}
|
2019-09-26 14:12:27 +00:00
|
|
|
contract B is C {
|
|
|
|
constructor() F(1) public {
|
|
|
|
assert(a == 3);
|
|
|
|
assert(a == 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
contract A is B {
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 4661: (287-301): Assertion violation happens here
|
|
|
|
// Warning 4661: (287-301): Assertion violation happens here
|