solidity/test/libsolidity/semanticTests/getters/arrays.sol

13 lines
262 B
Solidity
Raw Normal View History

2020-05-28 15:39:08 +00:00
contract C {
uint8[][2] public a;
2020-06-23 12:14:24 +00:00
constructor() {
2020-05-28 15:39:08 +00:00
a[1].push(3);
a[1].push(4);
}
}
// ----
// a(uint256,uint256): 0, 0 -> FAILURE
// a(uint256,uint256): 1, 0 -> 3
// a(uint256,uint256): 1, 1 -> 4
// a(uint256,uint256): 2, 0 -> FAILURE