solidity/test/libsolidity/semanticTests/state_variables_init_order.sol
2023-05-11 10:56:55 -05:00

13 lines
178 B
Solidity

contract A {
uint public x = 0;
uint y = f();
function f() public returns (uint256) {
++x;
return 42;
}
}
contract B is A {
}
// ----
// x() -> 1