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

6 lines
197 B
Solidity

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