mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
235 B
Solidity
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.
|