mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			251 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			251 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
  struct S { function() returns (S storage)[] x; }
 | 
						|
  S s;
 | 
						|
  function f() internal pure returns (uint, uint, uint, S storage, uint, uint) {
 | 
						|
    (,,,s.x[2](),,) = f();
 | 
						|
  }
 | 
						|
} 
 | 
						|
// ----
 | 
						|
// TypeError: (160-168): Expression has to be an lvalue.
 |