solidity/test/libsolidity/smtCheckerTests/functions/constructor_hierarchy_same_var.sol
2019-11-28 14:43:23 +01:00

17 lines
253 B
Solidity

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