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

15 lines
207 B
Solidity

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