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

8 lines
265 B
Solidity
Raw Normal View History

2020-07-13 20:11:42 +00:00
contract test {
function f() public pure returns (string memory) {
return "😃, 😭, and 😈";
}
}
// ----
// ParserError 8936: (86-88): Invalid character in string. If you are trying to use Unicode characters, use a unicode"..." string literal.