mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			364 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			364 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function() internal returns (uint)[] x;
 | 
						|
    function() internal returns (uint)[] y;
 | 
						|
 | 
						|
    function test() public returns (uint256) {
 | 
						|
        x = new function() internal returns (uint)[](10);
 | 
						|
        x[9] = a;
 | 
						|
        y = x;
 | 
						|
        return y[9]();
 | 
						|
    }
 | 
						|
 | 
						|
    function a() public returns (uint256) {
 | 
						|
        return 7;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ----
 | 
						|
// test() -> 7
 |