solidity/test/libsolidity/syntaxTests/types/mapping/function_type_argument_external.sol

7 lines
226 B
Solidity
Raw Normal View History

contract C {
function f(function(mapping(uint=>uint) storage) external) public pure {
}
}
// ----
2020-05-14 17:02:45 +00:00
// TypeError: (37-64): Data location must be "memory" or "calldata" for parameter in function, but "storage" was given.