aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/arrayLength/tuples.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-11 23:27:06 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-12 00:30:34 +0800
commitcb548f6f530cf52d8490fb194623888126bd85d4 (patch)
tree6ca950c91d2dba0f44a24ed59b775e5588e8a537 /test/libsolidity/syntaxTests/arrayLength/tuples.sol
parentfdcbf1337a018087fe82a2fbef938d0acd6769f9 (diff)
downloaddexon-solidity-cb548f6f530cf52d8490fb194623888126bd85d4.tar.gz
dexon-solidity-cb548f6f530cf52d8490fb194623888126bd85d4.tar.zst
dexon-solidity-cb548f6f530cf52d8490fb194623888126bd85d4.zip
Fix ConstantEvaluator to correctly handle single element tuples.
Diffstat (limited to 'test/libsolidity/syntaxTests/arrayLength/tuples.sol')
-rw-r--r--test/libsolidity/syntaxTests/arrayLength/tuples.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/arrayLength/tuples.sol b/test/libsolidity/syntaxTests/arrayLength/tuples.sol
new file mode 100644
index 00000000..bc10b3b5
--- /dev/null
+++ b/test/libsolidity/syntaxTests/arrayLength/tuples.sol
@@ -0,0 +1,5 @@
+contract C {
+ uint[(1,2)] a15;
+}
+// ----
+// TypeError: (22-27): Invalid array length, expected integer literal or constant expression.