mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
409 B
Solidity
14 lines
409 B
Solidity
contract C {
|
|
struct S { uint a; }
|
|
S m_x;
|
|
uint[] m_y;
|
|
function f() view public {
|
|
S x = m_x;
|
|
uint[] y = m_y;
|
|
x; y;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 6651: (104-107): Data location must be "storage", "memory" or "calldata" for variable, but none was given.
|
|
// TypeError 6651: (123-131): Data location must be "storage", "memory" or "calldata" for variable, but none was given.
|