2018-07-18 15:20:26 +00:00
|
|
|
contract c {
|
|
|
|
mapping(uint => uint) y;
|
|
|
|
function f() view public {
|
|
|
|
mapping(uint => uint) memory x = y;
|
|
|
|
x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 6651: (81-111): Data location must be "storage" for variable, but "memory" was given.
|