solidity/test/libsolidity/syntaxTests/tight_packing_literals.sol
2022-04-01 23:41:18 -05:00

9 lines
244 B
Solidity

contract C {
function k() pure public returns (bytes memory) {
return abi.encodePacked(1);
}
}
// ----
// TypeError 7279: (99-100='1'): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.