aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/366_invalid_array_as_statement.sol
blob: cc2839cd2992b3a2d3d2c2bb50837829d67e6e29 (plain) (tree)
1
2
3
4
5
6

                        
                                        

       
                                                 
contract test {
    struct S { uint x; }
    constructor(uint k) public { S[k]; }
}
// ----
// TypeError: (76-77): Integer constant expected.