mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Better error messages when writing to expressions that cannot be written to.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
library L {
|
||||
function f(mapping(uint=>uint) storage x, mapping(uint=>uint) storage y) external {
|
||||
x = y;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (108-109): Mappings cannot be assigned to.
|
||||
Reference in New Issue
Block a user