mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			261 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			261 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract A {
 | 
						|
    function f() public pure returns (uint, uint, uint, uint) {
 | 
						|
		uint y1 = 1;
 | 
						|
		uint y2 = 1;
 | 
						|
		uint x = 3 < 0 ? y1 = 3 : 6;
 | 
						|
		uint z = 3 < 10 ? y2 = 5 : 6;
 | 
						|
		return (x, y1, y2, z);
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 6, 1, 5, 5
 |