mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			294 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			294 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| function id(uint16 x) pure returns(uint16) {
 | |
|     return x;
 | |
| }
 | |
| contract C {
 | |
|     using {id} for uint256;
 | |
| }
 | |
| // ----
 | |
| // TypeError 3100: (85-87): The function "id" cannot be bound to the type "uint256" because the type cannot be implicitly converted to the first argument of the function ("uint16").
 |