solidity/test/libsolidity/syntaxTests/structs/global_struct_shadowing.sol
2019-09-02 11:17:42 +02:00

11 lines
230 B
Solidity

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