solidity/test/libsolidity/syntaxTests/structs/global_struct_shadowing.sol
2022-04-01 23:41:18 -05:00

11 lines
261 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='struct S { address x; }'): This declaration shadows an existing declaration.