mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			264 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			264 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
library A {
 | 
						|
    function f() internal returns (uint256) {
 | 
						|
        return 1;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
contract B {
 | 
						|
    function f() internal returns (uint256) {
 | 
						|
        return 2;
 | 
						|
    }
 | 
						|
 | 
						|
    function g() public returns (uint256) {
 | 
						|
        return A.f();
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// g() -> 1
 |