solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
==== Source: A ====
function sub(uint256 x, uint256 y) pure returns (uint) { return 1; }
function sub(uint256 x) pure returns (uint) { return 2; }
==== Source: B ====
import {sub} from "A";
contract C
{
    function f() public pure returns (uint, uint) {
        return (sub(1, 2), sub(2));
    }
}
// ====
// compileViaYul: also
// ----
// f() -> 1, 2