blob: 600ae669307dff8390375f22d18988d09a329297 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
contract c {
mapping(uint => uint) y;
function f() view public {
mapping(uint => uint) memory x = y;
x;
}
}
// ----
// TypeError: (81-111): Data location must be "storage" for variable, but "memory" was given.
|