mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			485 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			485 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
==== Source: s1.sol ====
 | 
						|
function normal() pure returns (uint) { return 1337; }
 | 
						|
function reverting() pure returns (uint) { revert(); }
 | 
						|
==== Source: s2.sol ====
 | 
						|
import "s1.sol";
 | 
						|
contract C
 | 
						|
{
 | 
						|
	function foo() public pure returns (uint) { normal(); }
 | 
						|
	function bar() public pure returns (uint) { reverting(); }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// Warning 6321: (s2.sol:67-71): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
 |