solidity/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol

9 lines
400 B
Solidity
Raw Normal View History

2018-07-26 04:06:56 +00:00
contract C {
struct Nested { uint y; }
// ensure that we consider array of function pointers as reference type
2018-08-07 17:12:49 +00:00
function b(function(Nested memory) external returns (uint)[] storage) internal pure {}
function c(function(Nested memory) external returns (uint)[] memory) public pure {}
function d(function(Nested memory) external returns (uint)[] calldata) external pure {}
2018-07-26 04:06:56 +00:00
}
// ----