diff options
author | chriseth <chris@ethereum.org> | 2018-08-08 01:12:49 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-15 00:53:06 +0800 |
commit | 13905a2094d454aa94259412a3cf20a5f8176fff (patch) | |
tree | 40ee6df0b3e735df5f192744caad5910e559c1ec /test/libsolidity/syntaxTests/dataLocations/internalFunction | |
parent | 16de7a04935ecee9c33392965f23dcfc775b799d (diff) | |
download | dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.gz dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.tar.zst dexon-solidity-13905a2094d454aa94259412a3cf20a5f8176fff.zip |
Update tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/dataLocations/internalFunction')
3 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/dataLocations/internalFunction/function_argument_location_specifier_test_internal_calldata.sol b/test/libsolidity/syntaxTests/dataLocations/internalFunction/function_argument_location_specifier_test_internal_calldata.sol index f2740946..771f1525 100644 --- a/test/libsolidity/syntaxTests/dataLocations/internalFunction/function_argument_location_specifier_test_internal_calldata.sol +++ b/test/libsolidity/syntaxTests/dataLocations/internalFunction/function_argument_location_specifier_test_internal_calldata.sol @@ -2,4 +2,4 @@ contract test { function f(bytes calldata) internal; } // ---- -// TypeError: (31-36): Variable cannot be declared as "calldata" (remove the "calldata" keyword). +// TypeError: (31-36): Data location must be "storage" or "memory" for parameter in function, but "calldata" was given. diff --git a/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_parameters_no_data_location.sol b/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_parameters_no_data_location.sol index 1ec530a9..f1c4a550 100644 --- a/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_parameters_no_data_location.sol +++ b/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_parameters_no_data_location.sol @@ -2,4 +2,4 @@ contract C { function g(uint[]) internal pure {} } // ---- -// TypeError: (28-34): Storage location must be "storage" or "memory" for parameter in internal function, but none was given. +// TypeError: (28-34): Data location must be "storage" or "memory" for parameter in function, but none was given. diff --git a/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_return_parameters_no_data_location.sol b/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_return_parameters_no_data_location.sol index 243151f0..a32995e7 100644 --- a/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_return_parameters_no_data_location.sol +++ b/test/libsolidity/syntaxTests/dataLocations/internalFunction/internal_function_return_parameters_no_data_location.sol @@ -2,4 +2,4 @@ contract C { function g() internal pure returns(uint[]) {} } // ---- -// TypeError: (52-58): Storage location must be "storage" or "memory" for parameter in internal function, but none was given. +// TypeError: (52-58): Data location must be "storage" or "memory" for return parameter in function, but none was given. |