mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
242 B
Solidity
12 lines
242 B
Solidity
|
pragma experimental "v0.5.0";
|
||
|
contract C {
|
||
|
struct S { uint a; }
|
||
|
S x;
|
||
|
function f() view public {
|
||
|
S y = x;
|
||
|
y;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (116-119): Data location must be specified as either "memory" or "storage".
|