mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
453 B
Solidity
10 lines
453 B
Solidity
|
library L {
|
||
|
struct Nested { uint y; }
|
||
|
function b(function(Nested calldata) external returns (uint)[] storage) external pure {}
|
||
|
function d(function(Nested storage) external returns (uint)[] storage) external pure {}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// TypeError: (66-72): Data location must be "memory" for parameter in function, but "calldata" was given.
|
||
|
// TypeError: (159-165): Data location must be "memory" for parameter in function, but "storage" was given.
|