mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjusts semantic tests to read-only array length.
This commit is contained in:
@@ -2,12 +2,12 @@ contract C {
|
||||
mapping (uint => uint)[] a;
|
||||
|
||||
function n1(uint key, uint value) public {
|
||||
a.length++;
|
||||
a.push();
|
||||
a[a.length - 1][key] = value;
|
||||
}
|
||||
|
||||
function n2() public {
|
||||
a.length++;
|
||||
a.push();
|
||||
}
|
||||
|
||||
function map(uint key) public view returns (uint) {
|
||||
|
||||
Reference in New Issue
Block a user