mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
427 B
Solidity
15 lines
427 B
Solidity
contract test {
|
|
mapping(uint=>uint) map;
|
|
function fun() public {
|
|
mapping(uint=>uint) storage a = map;
|
|
map = a;
|
|
(map) = a;
|
|
(map, map) = (a, a);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (126-129): Mappings cannot be assigned to.
|
|
// TypeError: (144-147): Mappings cannot be assigned to.
|
|
// TypeError: (163-166): Mappings cannot be assigned to.
|
|
// TypeError: (168-171): Mappings cannot be assigned to.
|