mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			290 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			290 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f(bytes calldata b, uint i) internal pure returns (bytes1) {
 | |
|         return b[i];
 | |
|     }
 | |
|     function f(uint, bytes calldata b, uint) external pure returns (bytes1) {
 | |
|         return f(b, 2);
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // f(uint256,bytes,uint256): 7, 0x60, 7, 4, "abcd" -> "c"
 |