aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol')
-rw-r--r--test/libsolidity/syntaxTests/indexing/fixedbytes_without_index.sol8
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.