solidity/test/libsolidity/syntaxTests/tight_packing_literals.sol
2018-07-03 01:02:00 +02:00

9 lines
227 B
Solidity

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