solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol

6 lines
202 B
Solidity
Raw Normal View History

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