solidity/test/libsolidity/syntaxTests/literalSuffixes/suffixableLiterals/invalid_suffixed_string_hex.sol
2023-03-22 13:16:31 +01:00

8 lines
263 B
Solidity

function suffix(string memory value) pure suffix returns (string memory) { return value; }
contract C {
string x = hex"abcd" suffix;
}
// ----
// TypeError 8838: (120-136): The type of the literal cannot be converted to the parameter of the suffix function.