Better error messages when writing to expressions that cannot be written to.

This commit is contained in:
Daniel Kirchner
2019-08-14 17:59:48 +02:00
parent fd7215dad0
commit b0a5666b43
20 changed files with 187 additions and 14 deletions
@@ -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.