mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			327 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			327 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
| 	function g(address payable _p) internal pure returns (uint) {
 | |
| 		return 1;
 | |
| 	}
 | |
| 	function f(address _a) public pure {
 | |
| 		uint x = g(payable(_a));
 | |
| 		uint y = g(_a);
 | |
| 	}
 | |
| }
 | |
| // ----
 | |
| // TypeError: (169-171): Invalid type for argument in function call. Invalid implicit conversion from address to address payable requested.
 |