solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_state_variable_init.sol
2020-07-07 12:16:18 +02:00

12 lines
186 B
Solidity

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