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

21 lines
246 B
Solidity

pragma experimental SMTChecker;
contract A {
uint x;
function h() public view {
assert(x == 0);
}
}
contract B is A {
function g() public view {
assert(x == 0);
}
}
contract C is B {
function f() public view {
assert(x == 0);
}
}