mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
310 B
Solidity
8 lines
310 B
Solidity
contract C {
|
|
function f(function() external returns (mapping(uint=>uint) storage)) public pure {
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (57-84): Data location must be "memory" for return parameter in function, but "storage" was given.
|
|
// TypeError: (57-84): Internal type cannot be used for external function type.
|