mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE when printing an error message related to mappings
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
library L {
|
||||
function f(mapping(uint=>uint) memory) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4061: (25-51): Type mapping(uint256 => uint256) is only valid in storage because it contains a (nested) mapping.
|
||||
@@ -0,0 +1,6 @@
|
||||
type T is uint;
|
||||
library L {
|
||||
function f(mapping(T=>T) memory) public {}
|
||||
}
|
||||
// ----
|
||||
// TypeError 4061: (41-61): Type mapping(T => T) is only valid in storage because it contains a (nested) mapping.
|
||||
Reference in New Issue
Block a user