solidity/test/libsolidity/smtCheckerTests/functions/getters/array_of_structs_1.sol

19 lines
309 B
Solidity
Raw Normal View History

pragma abicoder v1;
struct Item {
uint x;
uint y;
}
contract D {
Item[][][] public items;
function test() public view returns (uint) {
(uint a, uint b) = this.items(1, 2, 3);
return a + b;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-10-06 09:53:03 +00:00
// Info 1180: Contract invariant(s) for :D:\n(items[1][2][3].y <= 0)\n