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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 9578: (193-195): Type not supported in packed mode.
|
|
|
|
// TypeError 9578: (323-324): Type not supported in packed mode.
|
|
|
|
// TypeError 9578: (326-327): Type not supported in packed mode.
|