aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/271_inline_array_declaration_const_int_conversion.sol
blob: e7036bdf19904f5367e73283a8c0a4048d3c760f (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() public returns (uint) {
        uint8[4] memory z = [1,2,3,5];
        return (z[0]);
    }
}
// ----
// Warning: (17-121): Function state mutability can be restricted to pure