solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
contract C {
    function g(int x, int y) public pure returns (int) { return x - y; }
    function h(int y, int x) public pure returns (int) { return y - x; }

    function f() public pure returns (int) {
        return (false ? g : h)(2, 1);
    }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 1