mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE caused by storage parameters with nested mappings in libraries
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
struct S { mapping(uint => uint)[2] a; }
|
||||
contract C {
|
||||
function f(S storage s) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 6651: (69-80): Data location must be "memory" or "calldata" for parameter in function, but "storage" was given.
|
||||
@@ -0,0 +1,4 @@
|
||||
struct S { mapping(uint => uint)[2] a; }
|
||||
library L {
|
||||
function f(S storage s) public {}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
library Test {
|
||||
struct Nested { mapping(uint => uint)[2][] a; }
|
||||
struct X { Nested n; }
|
||||
function f(X storage x) public {}
|
||||
}
|
||||
Reference in New Issue
Block a user