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

8 lines
316 B
Solidity
Raw Normal View History

contract test {
function f() public pure returns (string memory) {
return "\xc1";
}
}
// ----
// TypeError 6359: (86-92): Return argument type literal_string (contains invalid UTF-8 sequence at position 0) is not implicitly convertible to expected type (type of first return variable) string memory.