solidity/test/libsolidity/syntaxTests/types/mapping/function_type_argument_external.sol
2018-08-14 18:53:06 +02:00

8 lines
292 B
Solidity

contract C {
function f(function(mapping(uint=>uint) storage) external) public pure {
}
}
// ----
// TypeError: (37-56): Data location must be "memory" for parameter in function, but "storage" was given.
// TypeError: (37-56): Internal type cannot be used for external function type.