solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/480_explicit_literal_to_storage_string_assignment.sol

8 lines
219 B
Solidity

contract C {
function f() pure public {
string storage x = "abc";
}
}
// ----
// TypeError 9574: (52-76): Type literal_string "abc" is not implicitly convertible to expected type string storage pointer.