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

10 lines
189 B
Solidity
Raw Normal View History

2020-05-28 15:39:08 +00:00
contract C {
mapping(uint => mapping(uint => uint)) public x;
2020-06-23 12:14:24 +00:00
constructor() {
2020-05-28 15:39:08 +00:00
x[1][2] = 3;
}
}
// ----
// x(uint256,uint256): 1, 2 -> 3
// x(uint256,uint256): 0, 0 -> 0