aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tight_packing_literals.sol
blob: a136aa77793e9cf5e6fa441d99bdb9eccfecb805 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function k() pure public returns (bytes) {
        return abi.encodePacked(1);
    }
}

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