diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/dataLocations/libraries/library_public_function_return_parameters_no_data_location.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/dataLocations/libraries/library_public_function_return_parameters_no_data_location.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/dataLocations/libraries/library_public_function_return_parameters_no_data_location.sol b/test/libsolidity/syntaxTests/dataLocations/libraries/library_public_function_return_parameters_no_data_location.sol new file mode 100644 index 00000000..79307cd0 --- /dev/null +++ b/test/libsolidity/syntaxTests/dataLocations/libraries/library_public_function_return_parameters_no_data_location.sol @@ -0,0 +1,5 @@ +library L { + function h(uint[]) public pure {} +} +// ---- +// TypeError: (27-33): Storage location must be "storage" or "memory" for parameter in public function, but none was given. |