solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/481_explicit_literal_to_unspecified_string_assignment.sol
2018-07-12 12:54:42 +02:00

8 lines
214 B
Solidity

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.