solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pragma abicoder v2;

contract C {
	struct S { uint256 x; }
	struct S2 { uint256 x; uint256 y; }
	function f(S calldata s, S2 calldata s2) public pure returns (uint256 r, uint256 r2) {
		assembly {
			s := s2
			s2 := 4
		}
		r = s.x;
		r2 = s2.x;
	}
}
// ====
// compileViaYul: also
// ----
// f((uint256),(uint256,uint256)): 0x42, 0x07, 0x77 -> 0x07, 0x42