Changed error message for for Unicode character in non-unicode string literal

Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
This commit is contained in:
Samuel Osewa
2022-06-15 16:12:24 +05:30
committed by nishant-sachdeva
co-authored by Kamil Śliwak
parent 9542e46ea4
commit c21265f9f8
6 changed files with 18 additions and 3 deletions
@@ -0,0 +1,7 @@
contract test {
function f() public pure returns (string memory) {
return ";
}
}
// ----
// ParserError 8936: (86-88): Invalid character in string. If you are trying to use Unicode characters, use a unicode"..." string literal.
@@ -4,4 +4,4 @@ contract test {
}
}
// ----
// ParserError 8936: (86-88): Invalid character in string.
// ParserError 8936: (86-88): Invalid character in string. If you are trying to use Unicode characters, use a unicode"..." string literal.