aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/017_assignment_to_struct.sol
blob: 6fbd09aea48c4a66c6672f14272315202438bf76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract test {
    struct str {
        mapping(uint=>uint) map;
    }
    str data;
    function fun() public {
        str storage a = data;
        data = a;
    }
}
// ----