solidity/test/libsolidity/semanticTests/getters/mapping.sol
2020-07-07 12:16:18 +02:00

11 lines
219 B
Solidity

contract C {
mapping(uint => mapping(uint => uint)) public x;
constructor() {
x[1][2] = 3;
}
}
// ====
// compileViaYul: also
// ----
// x(uint256,uint256): 1, 2 -> 3
// x(uint256,uint256): 0, 0 -> 0