Return UTF-8 error in BoolResult and remove it from string type

This commit is contained in:
Alex Beregszaszi
2020-09-23 17:35:05 +01:00
parent a154594de6
commit e54110ff17
9 changed files with 19 additions and 17 deletions
@@ -2,4 +2,4 @@ contract C {
string s = string("\xa0\x00");
}
// ----
// TypeError 9640: (28-46): Explicit type conversion not allowed from "literal_string hex"a000" (contains invalid UTF-8 sequence at position 0)" to "string memory".
// TypeError 9640: (28-46): Explicit type conversion not allowed from "literal_string hex"a000"" to "string memory". Contains invalid UTF-8 sequence at position 0.