mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			348 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			348 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    uint[] s;
 | 
						|
    modifier mod(uint[] storage b) {
 | 
						|
        b[0] = 0;
 | 
						|
        _;
 | 
						|
    }
 | 
						|
    function f() mod(a) internal returns (uint[] storage a)
 | 
						|
    {
 | 
						|
		a = s;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError 3464: (120-121): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
 |