aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/150_array_with_nonconstant_length.sol
blob: 49a1851c0f3dc0922d36eed54e09a0c403448fdf (plain) (tree)
1
2
3
4
5




                                                                                             
contract c {
    function f(uint a) public { uint8[a] x; }
}
// ----
// TypeError: (51-52): Invalid array length, expected integer literal or constant expression.