mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
526 B
Solidity
23 lines
526 B
Solidity
pragma experimental ABIEncoderV2;
|
|
|
|
contract C {
|
|
struct S { uint x; }
|
|
S s;
|
|
struct T { uint y; }
|
|
T t;
|
|
function e() public view {
|
|
S memory st;
|
|
abi.encodePacked(st);
|
|
}
|
|
function f() public view {
|
|
abi.encode(s, t);
|
|
}
|
|
function g() public view {
|
|
abi.encodePacked(s, t);
|
|
}
|
|
}
|
|
// ----
|
|
// 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.
|