mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			326 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			326 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);
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // compileToEwasm: also
 | |
| // ----
 | |
| // f() -> 1
 |