2020-05-19 08:05:15 +00:00
|
|
|
contract D {
|
|
|
|
mapping (uint => uint) a;
|
|
|
|
mapping (uint => uint) b;
|
|
|
|
function foo() public view {
|
|
|
|
mapping (uint => uint) storage c = b;
|
|
|
|
b = c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 9214: (160-161): Mappings cannot be assigned to.
|