mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
323 B
Solidity
8 lines
323 B
Solidity
contract test {
|
|
function f() public pure returns (string memory) {
|
|
return "\xc1";
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 6359: (86-92): Return argument type literal_string hex"c1" is not implicitly convertible to expected type (type of first return variable) string memory. Contains invalid UTF-8 sequence at position 0.
|