solidity/test/libsolidity/syntaxTests/literalSuffixes/suffixableLiterals/invalid_suffixed_string_hex.sol
Kamil Śliwak 8adf89f042 Test cases
2022-08-11 09:37:32 +02:00

8 lines
256 B
Solidity

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