aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-08 01:12:49 +0800
committerchriseth <chris@ethereum.org>2018-08-15 00:53:06 +0800
commit13905a2094d454aa94259412a3cf20a5f8176fff (patch)
tree40ee6df0b3e735df5f192744caad5910e559c1ec /test/libsolidity/syntaxTests/dataLocations/function_type_array_as_reference_type.sol
parent16de7a04935ecee9c33392965f23dcfc775b799d (diff)
downloaddexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.gz
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.bz2
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.lz
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.xz
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.zst
dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.zip
Update tests.
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.sol8
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.