solidity/test/libsolidity/semanticTests/various/state_variable_local_variable_mixture.sol

13 lines
174 B
Solidity
Raw Normal View History

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