2018-03-16 15:06:40 +00:00
|
|
|
contract C {
|
|
|
|
struct S { uint x; }
|
|
|
|
S s;
|
2018-06-06 09:15:22 +00:00
|
|
|
struct T { uint y; }
|
2018-03-16 15:06:40 +00:00
|
|
|
T t;
|
|
|
|
enum A { X, Y }
|
|
|
|
function f() public pure {
|
2018-05-23 13:39:26 +00:00
|
|
|
bytes memory a = abi.encodePacked(S, A, A.X, T, uint, uint[]);
|
|
|
|
a;
|
2018-03-16 15:06:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2018-05-23 13:39:26 +00:00
|
|
|
// 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.
|