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