solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_state_variable_init_base.sol

15 lines
207 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
uint x = 2;
}
contract D is C {
2020-06-23 12:14:24 +00:00
constructor() {
assert(x == 2);
assert(x == 3);
}
}
// ----
2020-07-23 10:58:15 +00:00
// Warning 6328: (117-131): Assertion violation happens here