aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/270_inline_array_declaration_and_passing_implicit_conversion_strings.sol
blob: 025244d3cf7c484db1f8767cc6dfeb817c3abd93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    function f() public returns (string memory) {
        string memory x = "Hello";
        string memory y = "World";
        string[2] memory z = [x, y];
        return (z[0]);
    }
}
// ----
// Warning: (17-198): Function state mutability can be restricted to pure