solidity/test/libsolidity/syntaxTests/types/mapping/assignment_local_err.sol
2020-05-19 19:12:38 +05:30

11 lines
240 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: (160-161): Mappings cannot be assigned to.