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