mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
==== Source: a.sol ====
 | 
						|
function f(uint) pure returns (uint) { return 7; }
 | 
						|
function f(bytes memory x) pure returns (uint) { return x.length; }
 | 
						|
==== Source: b.sol ====
 | 
						|
import "a.sol" as M;
 | 
						|
contract C {
 | 
						|
    function f() public pure returns (uint, uint) {
 | 
						|
        return (M.f(2), M.f("abc"));
 | 
						|
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 7, 3
 |