diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-12 02:49:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 02:49:21 +0800 |
commit | 418e2725b50aebc169dd80f78a0ce3eefc2e296e (patch) | |
tree | 6ca950c91d2dba0f44a24ed59b775e5588e8a537 /test/libsolidity/syntaxTests/arrayLength/inline_array.sol | |
parent | d50d1f0ac1841a1d287a216451e93573fc07474e (diff) | |
parent | cb548f6f530cf52d8490fb194623888126bd85d4 (diff) | |
download | dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar.gz dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar.bz2 dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar.lz dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar.xz dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.tar.zst dexon-solidity-418e2725b50aebc169dd80f78a0ce3eefc2e296e.zip |
Merge pull request #3862 from ethereum/fixConstantEvaluatorTuples
Fix ConstantEvaluator to correctly handle single element tuples (i.e. parenthesis).
Diffstat (limited to 'test/libsolidity/syntaxTests/arrayLength/inline_array.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/arrayLength/inline_array.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/arrayLength/inline_array.sol b/test/libsolidity/syntaxTests/arrayLength/inline_array.sol new file mode 100644 index 00000000..a30745d3 --- /dev/null +++ b/test/libsolidity/syntaxTests/arrayLength/inline_array.sol @@ -0,0 +1,5 @@ +contract C { + uint[[2]] a15; +} +// ---- +// TypeError: (22-25): Invalid array length, expected integer literal or constant expression. |