mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			170 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			170 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
library D { function double(uint self) public pure returns (uint) { return 2*self; } }
 | 
						|
contract C {
 | 
						|
	using D for uint;
 | 
						|
	function f(uint a) public pure {
 | 
						|
		a.double;
 | 
						|
	}
 | 
						|
}
 |