aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/269_inline_array_declaration_and_passing_implicit_conversion.sol
blob: 023404f724f5f3dfd934b5783ad6fb76188c9f80 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                         
    contract C {
        function f() public returns (uint) {
            uint8 x = 7;
            uint16 y = 8;
            uint32 z = 9;
            uint32[3] memory ending = [x, y, z];
            return (ending[1]);
        }
    }
// ----
// Warning: (25-229): Function state mutability can be restricted to pure