aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/481_explicit_literal_to_unspecified_string_assignment.sol
blob: ee56204a8b0f78ecdb28f6355f01e6f7d9884a35 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f() pure public {
        string storage x = "abc";
    }
}
// ----
// TypeError: (52-76): Type literal_string "abc" is not implicitly convertible to expected type string storage pointer.