solidity/test/libsolidity/syntaxTests/structs/global_struct_shadowing.sol

11 lines
235 B
Solidity

struct S { uint a; }
contract C {
struct S { address x; }
function f() public view {
S memory s = S(address(this));
s;
}
}
// ----
// Warning 2519: (38-61): This declaration shadows an existing declaration.