solidity/test/libsolidity/syntaxTests/string/invalid_utf8_hex_string.sol

6 lines
212 B
Solidity
Raw Normal View History

contract C {
string s = hex"a000";
}
// ----
// TypeError 7407: (28-37): Type literal_string (contains invalid UTF-8 sequence at position 0) is not implicitly convertible to expected type string storage ref.