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

11 lines
282 B
Solidity
Raw Normal View History

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