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

6 lines
223 B
Solidity
Raw Normal View History

contract C {
string s = string("\xa0\x00");
}
// ----
// TypeError 9640: (28-46): Explicit type conversion not allowed from "literal_string hex"a000" (contains invalid UTF-8 sequence at position 0)" to "string memory".