mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			265 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			265 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
library L {
 | 
						|
    using {L.privateFunction} for uint;
 | 
						|
    function privateFunction(uint x) private pure returns (uint) { return x + 1; }
 | 
						|
    function f() public pure returns (uint) {
 | 
						|
        uint x = 1;
 | 
						|
        return x.privateFunction();
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// f() -> 2
 |