2018-04-05 13:52:25 +00:00
|
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
struct S { uint x; }
|
|
|
|
S s;
|
|
|
|
struct T { uint y; }
|
|
|
|
T t;
|
2019-02-04 17:13:41 +00:00
|
|
|
function e() public view {
|
|
|
|
S memory st;
|
|
|
|
abi.encodePacked(st);
|
|
|
|
}
|
2018-04-05 13:52:25 +00:00
|
|
|
function f() public view {
|
|
|
|
abi.encode(s, t);
|
|
|
|
}
|
|
|
|
function g() public view {
|
|
|
|
abi.encodePacked(s, t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Warning: (0-33): Experimental features are turned on. Do not use experimental features on live deployments.
|
2019-02-04 17:13:41 +00:00
|
|
|
// TypeError: (193-195): Type not supported in packed mode.
|
|
|
|
// TypeError: (323-324): Type not supported in packed mode.
|
|
|
|
// TypeError: (326-327): Type not supported in packed mode.
|