mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Display string literal as hex in error messages if it is not printable ASCII
This commit is contained in:
@@ -2,4 +2,4 @@ contract C {
|
||||
string s = string("\xa0\x00");
|
||||
}
|
||||
// ----
|
||||
// TypeError 9640: (28-46): Explicit type conversion not allowed from "literal_string (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" (contains invalid UTF-8 sequence at position 0)" to "string memory".
|
||||
|
||||
Reference in New Issue
Block a user