mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
245 B
Solidity
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.
|