solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/017_assignment_to_struct.sol

13 lines
233 B
Solidity
Raw Normal View History

contract test {
struct str {
mapping(uint=>uint) map;
}
str data;
function fun() public {
var a = data;
data = a;
}
}
// ----
// Warning: (122-127): Use of the "var" keyword is deprecated.