mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
284 B
Solidity
22 lines
284 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract A {
|
||
|
uint x = 1;
|
||
|
}
|
||
|
|
||
|
contract B is A {
|
||
|
constructor() public { x = 2; }
|
||
|
}
|
||
|
|
||
|
contract C is B {
|
||
|
}
|
||
|
|
||
|
contract D is C {
|
||
|
constructor() public {
|
||
|
assert(x == 2);
|
||
|
assert(x == 3);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (199-213): Assertion violation happens here
|