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 {
    function f(uint256[2] calldata s)
        external
        pure
        returns (uint256 a, uint256 b)
    {
        a = s[0];
        b = s[1];
    }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f(uint256[2]): 42, 23 -> 42, 23