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

11 lines
143 B
Solidity

contract A {
uint256 x = 1;
uint256 y = 2;
function a() public returns (uint256 x) {
x = A.y;
}
}
// ----
// a() -> 2