blob: b50d44499a1e9dfaed6fabd60b1a29d046a7496b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
contract C {
struct S { uint x; }
S s;
struct T { uint y; }
T t;
enum A { X, Y }
function f() public pure {
bytes memory a = abi.encodePacked(S, A, A.X, T, uint, uint[]);
a;
}
}
// ----
// TypeError: (174-175): This type cannot be encoded.
// TypeError: (177-178): This type cannot be encoded.
// TypeError: (185-186): This type cannot be encoded.
// TypeError: (188-192): This type cannot be encoded.
// TypeError: (194-200): This type cannot be encoded.
|