solidity/test/libsolidity/smtCheckerTests/functions/constructor_hierarchy_mixed_chain_with_params_2.sol

27 lines
377 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract F {
uint a;
2020-06-23 12:14:24 +00:00
constructor(uint x) {
a = x;
}
}
2019-12-03 20:44:06 +00:00
abstract contract E is F {}
abstract contract D is E {
2020-06-23 12:14:24 +00:00
constructor() {
a = 3;
}
}
2019-12-03 20:44:06 +00:00
abstract contract C is D {}
contract B is C {
2020-06-23 12:14:24 +00:00
constructor() F(1) {
assert(a == 3);
assert(a == 2);
}
}
contract A is B {
}
// ----
2020-07-23 10:58:15 +00:00
// Warning 6328: (266-280): Assertion violation happens here