mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
==== Source: A ====
 | 
						|
function sub(uint256 x, uint256 y) pure returns (uint) { return 1; }
 | 
						|
function sub(uint256 x) pure returns (uint) { return 2; }
 | 
						|
==== Source: B ====
 | 
						|
import {sub} from "A";
 | 
						|
contract C
 | 
						|
{
 | 
						|
    function f() public pure returns (uint, uint) {
 | 
						|
        return (sub(1, 2), sub(2));
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// f() -> 1, 2
 |