aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/231_array_out_of_bound_access.sol
blob: 7230a0a638f5c356ed09799b6a22782271875b36 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                   
contract c {
    uint[2] dataArray;
    function set5th() public returns (bool) {
        dataArray[5] = 2;
        return true;
    }
}
// ----
// TypeError: (90-102): Out of bounds array access.