mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactoring of errors and fixes for various ICEs.
This commit is contained in:
@@ -7,3 +7,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (226-234): Type too large for memory.
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
function f(bytes32[1263941234127518272] memory) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (26-61): Array is too large to be encoded.
|
||||
// TypeError: (26-61): Type too large for memory.
|
||||
|
||||
@@ -2,10 +2,8 @@ contract C {
|
||||
function f(bytes32[1263941234127518272][500] memory) public pure {}
|
||||
function f(uint[2**30][] memory) public pure {}
|
||||
function f(uint[2**30][2**30][] memory) public pure {}
|
||||
function f(uint[2**16][2**16][] memory) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (26-66): Array is too large to be encoded.
|
||||
// TypeError: (96-116): Array is too large to be encoded.
|
||||
// TypeError: (146-173): Array is too large to be encoded.
|
||||
// TypeError: (203-230): Array is too large to be encoded.
|
||||
// TypeError: (26-66): Type too large for memory.
|
||||
// TypeError: (96-116): Type too large for memory.
|
||||
// TypeError: (146-173): Type too large for memory.
|
||||
|
||||
@@ -5,5 +5,5 @@ contract C {
|
||||
function f(uint[2**30][2**30][][] memory) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (61-101): Array is too large to be encoded.
|
||||
// TypeError: (131-160): Array is too large to be encoded.
|
||||
// TypeError: (61-101): Type too large for memory.
|
||||
// TypeError: (131-160): Type too large for memory.
|
||||
|
||||
Reference in New Issue
Block a user