Improve error coverage of syntax checker

This commit is contained in:
a3d4
2020-08-20 03:23:21 +02:00
parent 9e488f12fc
commit ad311fae19
5 changed files with 15 additions and 23 deletions
@@ -0,0 +1,6 @@
contract C {
string s = unicode"À";
}
// ----
// SyntaxError 8452: (28-38): Invalid UTF-8 sequence found
// 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.