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

11 lines
235 B
Solidity
Raw Normal View History

2019-08-15 13:35:57 +00:00
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.