solidity/test/libsolidity/syntaxTests/tight_packing_literals_050.sol

10 lines
259 B
Solidity
Raw Normal View History

pragma experimental "v0.5.0";
contract C {
function k() pure public returns (bytes) {
return abi.encodePacked(1);
}
}
// ----
2018-05-23 13:39:26 +00:00
// TypeError: (122-123): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.