diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol b/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol index a5d6af34..b3856f58 100644 --- a/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol +++ b/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol @@ -1,10 +1,8 @@ contract C { struct Nested { uint y; } // ensure that we consider array of function pointers as reference type - function a(function(Nested) external returns (uint)[]) public pure {} - function b(function(Nested) external returns (uint)[] storage) public pure {} - function c(function(Nested) external returns (uint)[] memory) public pure {} - function d(function(Nested) external returns (uint)[] calldata) public pure {} + 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 {} } // ---- -// TypeError: (208-250): Location has to be memory for public function. Remove the data location keyword to fix this error. |