mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			411 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			411 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function f() public pure returns (uint, uint, uint) {
 | 
						|
        return (1, 2, 3);
 | 
						|
    }
 | 
						|
    function g() public pure returns (uint x, uint y, uint z) {
 | 
						|
        (uint c, uint b, uint a) = f();
 | 
						|
        (x, y, z) = (a, b, c);
 | 
						|
    }
 | 
						|
    function h() public pure returns (uint) {
 | 
						|
        (,,uint a) = f();
 | 
						|
        return a;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// g() -> 3, 2, 1
 | 
						|
// h() -> 3
 |