mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			249 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			249 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
  struct I {
 | 
						|
    uint b;
 | 
						|
    uint c;
 | 
						|
  }
 | 
						|
  struct S {
 | 
						|
    I a;
 | 
						|
  }
 | 
						|
 | 
						|
  function f() external returns (uint) {
 | 
						|
    S memory s = S(I(1,2));
 | 
						|
    return s.a.b;
 | 
						|
  }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// f() -> 1
 |