mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
28 lines
459 B
Solidity
28 lines
459 B
Solidity
pragma experimental SMTChecker;
|
|
contract F {
|
|
uint a;
|
|
constructor(uint x) public {
|
|
a = x;
|
|
}
|
|
}
|
|
|
|
abstract contract E is F {}
|
|
abstract contract D is E {
|
|
constructor() public {
|
|
a = 3;
|
|
}
|
|
}
|
|
abstract contract C is D {}
|
|
contract B is C {
|
|
constructor() F(1) public {
|
|
assert(a == 3);
|
|
assert(a == 2);
|
|
}
|
|
}
|
|
|
|
contract A is B {
|
|
}
|
|
// ----
|
|
// Warning 4661: (287-301): Assertion violation happens here
|
|
// Warning 4661: (287-301): Assertion violation happens here
|