diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/266_invalid_args_creating_memory_array.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/266_invalid_args_creating_memory_array.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/266_invalid_args_creating_memory_array.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/266_invalid_args_creating_memory_array.sol new file mode 100644 index 00000000..ea3556de --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/266_invalid_args_creating_memory_array.sol @@ -0,0 +1,8 @@ +contract C { + function f(uint size) public { + var x = new uint[](); + } +} +// ---- +// Warning: (56-61): Use of the "var" keyword is deprecated. +// TypeError: (64-76): Wrong argument count for function call: 0 arguments given but expected 1. |