diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol new file mode 100644 index 00000000..8ad26fc0 --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/264_mapping_in_memory_array.sol @@ -0,0 +1,8 @@ +contract C { + function f(uint size) public { + var x = new mapping(uint => uint)[](4); + } +} +// ---- +// Warning: (56-61): Use of the "var" keyword is deprecated. +// TypeError: (68-91): Type cannot live outside storage. |