solidity/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol

10 lines
216 B
Solidity
Raw Normal View History

2018-03-21 13:45:32 +00:00
contract C {
function k() pure public returns (bytes memory) {
2018-03-21 13:45:32 +00:00
return abi.encodePacked(uint8(1));
}
function l() pure public returns (bytes memory) {
2018-04-20 11:00:35 +00:00
return abi.encode(1);
}
2018-03-21 13:45:32 +00:00
}
2018-04-20 11:00:35 +00:00
// ----