mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			396 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			396 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| pragma experimental ABIEncoderV2;
 | |
| 
 | |
| 
 | |
| contract C {
 | |
|     struct S {
 | |
|         uint256 a;
 | |
|         uint256 b;
 | |
|     }
 | |
| 
 | |
|     function f(uint256 a, S calldata s, uint256 b)
 | |
|         external
 | |
|         pure
 | |
|         returns (uint256, uint256, uint256, uint256)
 | |
|     {
 | |
|         return (a, s.a, s.b, b);
 | |
|     }
 | |
| }
 | |
| 
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // f(uint256,(uint256,uint256),uint256): 1, 2, 3, 4 -> 1, 2, 3, 4
 |