diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-24 07:19:12 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 03:26:36 +0800 |
commit | 1dbf2d19238068c19ef369e6fa2fb1b2f8ab1d13 (patch) | |
tree | beaac7c040ee9e7d894e8e40ac45c6c86b11c8f8 /test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol | |
parent | ae0959ae125ac2ae7084041a87c0736a8e7df6c6 (diff) | |
download | dexon-solidity-1dbf2d19238068c19ef369e6fa2fb1b2f8ab1d13.tar.gz dexon-solidity-1dbf2d19238068c19ef369e6fa2fb1b2f8ab1d13.tar.zst dexon-solidity-1dbf2d19238068c19ef369e6fa2fb1b2f8ab1d13.zip |
Add comprehensive syntax tests for indexed access
Diffstat (limited to 'test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol b/test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol new file mode 100644 index 00000000..979ac8a7 --- /dev/null +++ b/test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol @@ -0,0 +1,8 @@ +contract C { + function f() public { + bytes32 b; + b[]; + } +} +// ---- +// TypeError: (56-59): Index expression cannot be omitted. |