aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/186_invalid_utf8_explicit.sol
blob: 0f67460fb1f7efd9f5259beeda214f450a7994e6 (plain) (blame)
1
2
3
4
5
contract C {
    string s = string("\xa0\x00");
}
// ----
// TypeError: (28-46): Explicit type conversion not allowed from "literal_string (contains invalid UTF-8 sequence at position 0)" to "string memory".