mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			385 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			385 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
	function f() public pure returns (uint, uint, bytes32) {
 | 
						|
		uint a;
 | 
						|
		bytes32 b;
 | 
						|
		(a,) = f();
 | 
						|
		(,b) = f();
 | 
						|
	}
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError: (103-106): Type tuple(uint256,uint256,bytes32) is not implicitly convertible to expected type tuple(uint256,).
 | 
						|
// TypeError: (117-120): Type tuple(uint256,uint256,bytes32) is not implicitly convertible to expected type tuple(,bytes32).
 |