solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// this test just checks that the copy loop does not mess up the stack
contract C {
    function save() public returns (uint256 r) {
        r = 23;
        savedData = msg.data;
        r = 24;
    }

    bytes savedData;
}
// ====
// compileViaYul: also
// ----
// save() -> 24 # empty copy loop #
// save(): "abcdefg" -> 24