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

12 lines
189 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
uint x = 2;
constructor () public {
assert(x == 2);
assert(x == 3);
}
}
// ----
// Warning: (104-118): Assertion violation happens here