mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function g(int x, int y) public pure returns (int) { return x - y; }
 | 
						|
    function h(int y, int x) public pure returns (int) { return y - x; }
 | 
						|
 | 
						|
    function f() public pure returns (int) {
 | 
						|
        return (false ? g : h)(2, 1);
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 1
 |