solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/481_explicit_literal_to_unspecified_string_assignment.sol

8 lines
214 B
Solidity
Raw Normal View History

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.