solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_uses_function_base.sol
2021-04-08 21:03:39 +02:00

19 lines
244 B
Solidity

contract A {
uint x;
constructor() {
x = 42;
}
function f() public view returns(uint256) {
return x;
}
}
contract B is A {
uint y = f();
}
contract C is B {
function g() public view {
assert(y == 42);
}
}
// ====
// SMTEngine: all