aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-09-22 00:26:19 +0800
committerErik Kundt <bitshift@posteo.org>2018-09-22 00:44:56 +0800
commitff5be1799088ca51fb51e9c86031bd2d88fe3bce (patch)
tree3ce2d2042576e7a96d33ce73f81411ee66f9e9ac /test
parent5f919d02abc21e17d533a18876eabdf1a91939f7 (diff)
downloaddexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar.gz
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar.bz2
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar.lz
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar.xz
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.tar.zst
dexon-solidity-ff5be1799088ca51fb51e9c86031bd2d88fe3bce.zip
Disallows fixed-size multidim. arrays with zero-length.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/syntaxTests/array/multi_dim_zero_length.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/array/multi_dim_zero_length.sol b/test/libsolidity/syntaxTests/array/multi_dim_zero_length.sol
new file mode 100644
index 00000000..2f487cde
--- /dev/null
+++ b/test/libsolidity/syntaxTests/array/multi_dim_zero_length.sol
@@ -0,0 +1,6 @@
+contract C {
+ bytes[0] a;
+ function f() public pure returns(bytes32[0][500] memory) {}
+}
+// ----
+// TypeError: (62-84): Fixed-size multidimensional arrays are not allowed to have zero length.