solidity/test/libsolidity/syntaxTests/types/mapping/assignment_local_err.sol

11 lines
245 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): Mappings cannot be assigned to.