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

28 lines
449 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract F {
uint a;
constructor(uint x) public {
a = x;
}
}
2019-12-03 20:44:06 +00:00
abstract contract E is F {}
abstract contract D is E {
constructor() public {
a = 3;
}
}
2019-12-03 20:44:06 +00:00
abstract contract C is D {}
contract B is C {
constructor() F(1) public {
assert(a == 3);
assert(a == 2);
}
}
contract A is B {
}
// ----
2019-12-03 20:44:06 +00:00
// Warning: (287-301): Assertion violation happens here
// Warning: (287-301): Assertion violation happens here