solidity/test/libsolidity/syntaxTests/tight_packing_literals.sol

9 lines
227 B
Solidity
Raw Normal View History

2018-03-21 13:45:32 +00:00
contract C {
function k() pure public returns (bytes) {
return abi.encodePacked(1);
}
}
// ----
2018-06-29 15:41:59 +00:00
// TypeError: (92-93): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.