mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			306 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			306 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    struct S { bool f; }
 | 
						|
    S s;
 | 
						|
    function f() internal view returns (S storage, uint) {
 | 
						|
      return (s,2);
 | 
						|
    }
 | 
						|
    function g() internal view {
 | 
						|
        uint a;
 | 
						|
        S storage c;
 | 
						|
        (c, a) = f();
 | 
						|
        c;
 | 
						|
    }
 | 
						|
    function h() internal view {
 | 
						|
        (s, s);
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 |