solidity/test/libsolidity/syntaxTests/types/mapping/assignment_local_err.sol
2020-06-30 16:53:41 +05:30

11 lines
282 B
Solidity

contract D {
mapping (uint => uint) a;
mapping (uint => uint) b;
function foo() public view {
mapping (uint => uint) storage c = b;
b = c;
}
}
// ----
// TypeError 9214: (160-161): Types in storage containing (nested) mappings cannot be assigned to.