solidity/test/libsolidity/semanticTests/state_variables_init_order.sol
2022-05-19 20:23:28 +02:00

15 lines
210 B
Solidity

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