Display location of invalid UTF-8 sequence in unicode literals in SyntaxChecker

This commit is contained in:
Alex Beregszaszi
2020-09-23 17:01:02 +01:00
parent ca743191b7
commit 0e5abbd4a9
3 changed files with 5 additions and 3 deletions
@@ -2,5 +2,5 @@ contract C {
string s = unicode"À";
}
// ----
// SyntaxError 8452: (28-38): Invalid UTF-8 sequence found
// SyntaxError 8452: (28-38): Contains invalid UTF-8 sequence at position 0.
// TypeError 7407: (28-38): Type literal_string (contains invalid UTF-8 sequence at position 0) is not implicitly convertible to expected type string storage ref.