solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
contract C {
    function f() public pure {
        uint[] memory x;
        uint[1:](x);
        uint[1:2](x);
        uint[][1:](x);
    }
}
// ----
// TypeError 1760: (77-85): Types cannot be sliced.
// TypeError 9640: (77-88): Explicit type conversion not allowed from "uint256[] memory" to "uint256".
// TypeError 1760: (98-107): Types cannot be sliced.
// TypeError 9640: (98-110): Explicit type conversion not allowed from "uint256[] memory" to "uint256".
// TypeError 1760: (120-130): Types cannot be sliced.