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

18 lines
309 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
uint a;
constructor(uint x) public {
a = x;
}
}
contract A is C {
constructor() C(2) public {
assert(a == 0);
assert(C.a == 0);
}
}
// ----
// Warning: (148-162): Assertion violation happens here
2020-02-12 02:21:42 +00:00
// Warning: (166-182): Assertion violation happens here