mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
332 B
Solidity
16 lines
332 B
Solidity
contract Test {
|
|
struct RecursiveStruct {
|
|
RecursiveStruct[] vals;
|
|
}
|
|
|
|
function func() public pure {
|
|
RecursiveStruct[1] memory val = [ RecursiveStruct(new RecursiveStruct[](42)) ];
|
|
assert(val[0].vals.length == 42);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// compileToEwasm: also
|
|
// ----
|
|
// func() ->
|