mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
245 B
Solidity
11 lines
245 B
Solidity
|
contract C {
|
||
|
struct S { uint a; }
|
||
|
S x;
|
||
|
function f() view public {
|
||
|
S y = x;
|
||
|
y;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (86-89): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
|