solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_state_variable_init_chain_alternate.sol
2020-07-23 18:49:03 +02:00

22 lines
275 B
Solidity

pragma experimental SMTChecker;
contract A {
uint x = 1;
}
contract B is A {
constructor() { x = 2; }
}
contract C is B {
}
contract D is C {
constructor() {
assert(x == 2);
assert(x == 3);
}
}
// ----
// Warning 6328: (185-199): Assertion violation happens here