mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
220 B
Solidity
10 lines
220 B
Solidity
|
contract c {
|
||
|
mapping(uint => uint) y;
|
||
|
function f() view public {
|
||
|
mapping(uint => uint) x = y;
|
||
|
x;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (81-104): Data location for mappings must be specified as "storage".
|