aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tight_packing_literals_050.sol
blob: 4e6210c6998daaa44d0d2a71e3460f46d247ea44 (plain) (blame)
1
2
3
4
5
6
7
8
9
pragma experimental "v0.5.0";
contract C {
    function k() pure public returns (bytes) {
        return abi.encodePacked(1);
    }
}

// ----
// TypeError: (122-123): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.