From cb548f6f530cf52d8490fb194623888126bd85d4 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 11 Apr 2018 17:27:06 +0200 Subject: Fix ConstantEvaluator to correctly handle single element tuples. --- test/libsolidity/syntaxTests/arrayLength/tuples.sol | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/libsolidity/syntaxTests/arrayLength/tuples.sol (limited to 'test/libsolidity/syntaxTests/arrayLength/tuples.sol') 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. -- cgit