mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			357 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			357 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| library L {
 | |
|     function externalFunction(uint) external pure {}
 | |
|     function publicFunction(uint) public pure {}
 | |
|     function internalFunction(uint) internal pure {}
 | |
| }
 | |
| 
 | |
| contract C {
 | |
|     using L for uint;
 | |
| 
 | |
|     function f() public pure {
 | |
|         uint x;
 | |
|         x.externalFunction();
 | |
|         x.publicFunction();
 | |
|         x.internalFunction();
 | |
|     }
 | |
| }
 | |
| // ----
 |