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