mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			455 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			455 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function intern() public returns (uint256) {
 | 
						|
        function (uint) internal returns (uint) x;
 | 
						|
        x(2);
 | 
						|
        return 7;
 | 
						|
    }
 | 
						|
 | 
						|
    function extern() public returns (uint256) {
 | 
						|
        function (uint) external returns (uint) x;
 | 
						|
        x(2);
 | 
						|
        return 7;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// intern() -> FAILURE, hex"4e487b71", 0x51 # This should throw exceptions #
 | 
						|
// extern() -> FAILURE
 |