mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			261 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			261 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
==== Source: A ====
 | 
						|
function id(uint x) pure returns (uint) {
 | 
						|
    return x;
 | 
						|
}
 | 
						|
 | 
						|
==== Source: B ====
 | 
						|
import "A" as M;
 | 
						|
contract C {
 | 
						|
    using M for uint;
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError 4357: (B:40-41): Library name expected. If you want to attach a function, use '{...}'.
 |