solidity/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol

10 lines
202 B
Solidity
Raw Normal View History

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