solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/017_assignment_to_struct.sol
2020-06-30 16:53:41 +05:30

13 lines
277 B
Solidity

contract test {
struct str {
mapping(uint=>uint) map;
}
str data;
function fun() public {
str storage a = data;
data = a;
}
}
// ----
// TypeError 9214: (152-156): Types in storage containing (nested) mappings cannot be assigned to.