mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
365 B
Solidity
16 lines
365 B
Solidity
|
pragma experimental ABIEncoderV2;
|
||
|
|
||
|
contract TestContract
|
||
|
{
|
||
|
struct SubStruct {
|
||
|
uint256 id;
|
||
|
}
|
||
|
struct TestStruct {
|
||
|
SubStruct subStruct1;
|
||
|
SubStruct subStruct2;
|
||
|
}
|
||
|
function addTestStruct(TestStruct) public pure {}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: Experimental features are turned on. Do not use experimental features on live deployments.
|