solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/470_specified_storage_no_warn.sol

9 lines
132 B
Solidity
Raw Normal View History

contract C {
struct S { uint a; string b; }
S x;
function f() view public {
S storage y = x;
y;
}
}