solidity/test/libsolidity/semanticTests/structs/recursive_structs.sol
2022-05-19 20:23:28 +02:00

22 lines
354 B
Solidity

contract C {
struct S {
S[] x;
}
S sstorage;
function f() public returns (uint256) {
S memory s;
s.x = new S[](10);
delete s;
// TODO Uncomment after implemented.
// sstorage.x.push();
delete sstorage;
return 1;
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 1