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

6 lines
223 B
Solidity
Raw Normal View History

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