mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
198 B
Solidity
14 lines
198 B
Solidity
contract A {
|
|
uint256 x = 1;
|
|
uint256 y = 2;
|
|
|
|
function a() public returns (uint256 x) {
|
|
x = A.y;
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// compileToEwasm: also
|
|
// ----
|
|
// a() -> 2
|